I was having some unexpected behavior and crash reports and suspected that
my Application (not Activity) is having it's onCreate called multiple times
in the same process in some circumstances. As a test I added a static
boolean "sOnCreateCalled" and initialize it to false. In the application's
onCreate I check this value and if it's true submit a stacktrace. Then set
the value to true. ( http://pastebin.com/LPUHF4ey
trackException is a wrapper for ACRA).

Indeed I've received these stacktraces.

Does anyone have any insight onto what might cause an Application's
onCreate to be called multiple times in the same process? I cannot
reproduce the issue on my own devices. I have a few activities, including
some that request to run in different processes. And I have some manifest
broadcast receivers as well as an exported content provider.

Semi-related, I'm also logging all calls to onTerminate. As expected I
don't see any reports of that happening

Thanks,
-Kevin

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to