Taking photos using system provided
component(MediaStore.ACTION_IMAGE_CAPTURE) is quit common.

As Ive experimented, with a certain rate the android system will kill
the snapshot calling Activity to prevent memory related exception, and
the calling activity will be created again where returned. Thus I have
to save the states of the calling Activity via onSaveInstanceState,
and retrieve them via onRestoreInstanceState. (If Im not correct and
there is further info, please point it out)

However, I also found out that, when the killing occurs, all my
information stored in the RAM were ERASED, RESETED, for example those
Singleton class type objects, or static classes and their fields!

This mechanism is so frustrating, how to handle such situation??

-- 
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