I want to use ACRA in my app for crash reporting. I have used it earlier in other app.
My app doesn't have nay activity and is just a service. I want to have crash reports for service.
How can I use ACRA for this?
Its init function expects a reference of application class as argument. I tried using application class in my app but it is not working. Also if I create application class, it shows my app' icon on phone, which I don't want.
Having an application class should be possible even if you don't have any Activity. When a service is started the Application class is created beforehand.
Check that you declared correctly your application in the manifest <application name=".MyApplication">
.
The icon in the launcher should not appear if you don't have an Activity declared with LAUNCHER and MAIN intent filters.