I overloaded the Application class in my Android application and I use ACRA reporting system. My application looks like ( real source code here ):
public class MyApplication extends Application { @Override public void onCreate() { ACRA.init( this ); super.onCreate(); } }
And as far as I know, the Application object should be created only once, so the onCreate method should be called only once. The problem is that in my crash reports (from ACRA) I have the following:
java.lang.RuntimeException: Unable to create service it.evilsocket.myapp.net.N ... java.lang.RuntimeException: Unable to create service it.evilsocket.myapp.net.NetworkMonitorService: java.lang.RuntimeException: Unable to create application it.evilsocket.myapp.MyApplication: **java.lang.IllegalStateException: ACRA
So it looks like the onCreate application is being called multiple times, any idea on this?
NOTES:
- In my xroid manifest, I did NOT using android: process = "string".
- Yes, I am sure that in my initialization programs I do not accidentally call MyApplication.onCreate.
android acra lifecycle
Simone Margaritelli 09 Oct '12 at 23:10 2012-10-09 23:10
source share