The onCreate
of the Application
is called before any Activity
is created and does not have a UI, therefore ACRA cannot display a dialog. From the android docs for onCreate
Called when the application is starting, before any activity, service, or receiver objects (excluding content providers) have been created. Implementations should be as quick as possible (for example using lazy initialization of state) since the time spent in this function directly impacts the performance of starting the first activity, service, or receiver in a process. If you override this method, be sure to call super.onCreate().
So, be sure to call super.onCreate()
, which your example above is missing, and you should not be doing a whole lot in there that would cause exceptions.