Hi,
I thought it was simple. But I am stock. This is my library code so far (almost nothing )
Now I need to include the code that normally is called directly into a java application.
But I am not sure how to implement this in my library...
Can anyone help me with this?
I thought it was simple. But I am stock. This is my library code so far (almost nothing )
B4X:
package cyclone.b4a.testflightapp;
import com.testflightapp.lib.TestFlight;
import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.BA.ActivityObject;
import anywheresoftware.b4a.BA.DependsOn;
import anywheresoftware.b4a.BA.Permissions;
import anywheresoftware.b4a.BA.ShortName;
import anywheresoftware.b4a.BA.Version;
@Version(1.0f)
@Permissions(values={"android.permission.INTERNET","android.permission.ACCESS_NETWORK_STATE"})
@ShortName("TestFlight")
@DependsOn(values={"TestFlight"})
@ActivityObject
public class TestFlightWrapper {
}
Now I need to include the code that normally is called directly into a java application.
B4X:
public class MyApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
//Initialize TestFlight with your app token.
TestFlight.takeOff(this, YOUR_APP_TOKEN);
...
}
}
But I am not sure how to implement this in my library...
Can anyone help me with this?