The ACRA documentation to integrate crash reporting consists of 3 simple steps:
2 - Add the following to the AndroidManifest.xml
<!-- in the manifest, not the application tag -->
<uses-permission android:name="android.permission.INTERNET" />
and
<application ... android:name=".MyApplication">
...
</application>
3 - Create a new java class with the same name as above 'MyApplication':
import org.acra.*;
import org.acra.annotation.*;
@ReportsCrashes(formUri = "http://www.yourselectedbackend.com/reportpath")
public class MyApplication extends Application {
@Override
public void onCreate() {
// The following line triggers the initialization of ACRA
super.onCreate();
ACRA.init(this);
}
}
That's supposed to be it. I think the instructions are a bit out of date and that the AndroidManifest.xml has evolved since then.
I also needed to add the following inside my <application> ... </application>
for it to function:
<service android:name="org.acra.sender.SenderService" />
Question: Am I doing something wrong or have Android requirements evolved and I'm doing it correctly?
Either way I also want to share/document my steps in case others have the same problems.