With BetaPlayApp(BPA) we provide simple SDK witch uses HttpClient to POST json data to BetaPlayApp api server. BPA SDK is open-source and you can review on GitHub. Here we describe how to use it:
- place acra-4.4.0.jar and betaplay.jar into your lib folder
Example how to use:
1 2 3 4 5 6 7 8 9 10 11 12 |
<code>MyCustomApplication.java: import org.acra.annotation.ReportsCrashes; import com.betaplay.sdk.Betaplay; @ReportsCrashes(formKey = "{your form key here}", formUri = "https://betaplayapp.com/api/log") public class MyCustomApplication extends Application { @Override public void onCreate() { Betaplay.init(this); super.onCreate(); } } </code> |
Don’t forget on your manifest:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
<code>AndroidManifest.xml <manifest xmlns:android="…" package="your.package" android:versionCode="1" android:versionName="1.0"> <!-- This is important --> <uses-permission android:name="android.permission.READ_LOGS"/> <uses-permission android:name="android.permission.INTERNET"/> <application android:name="com.yourpackage.MyCustomApplication" android:debuggable="true"> </application> </code> |