Re: [android-developers] Frustrating but quite common taking SNAPSHOT problem

2011-03-24 Thread TreKing
On Thu, Mar 24, 2011 at 4:49 AM, mathcat wrote: > This mechanism is so frustrating, how to handle such situation?? Sounds you're already doing it with onSaveInstanceState. If you have Singletons, the whole point behind them is they are initialized on access if they're not already. If you need t

[android-developers] Frustrating but quite common taking SNAPSHOT problem

2011-03-24 Thread mathcat
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. Thu