使用系统提供的组件(MediaStore.ACTION_IMAGE_CAPTURE)拍摄照片很常见。令人沮丧但很常见的SNAPSHOT问题!
正如我ve 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 I
中号不正确,而且有进一步信息,请指出来)
不过,我也发现,当杀戮发生时,存储在RAM中的所有我的信息被擦除,RESETED,例如那些Singleton类类型的对象,或静态类及其字段!
这种机制是如此令人沮丧,如何处理这种情况?