onCreate called before and after onActivityResult

后端 未结 3 1603
北荒
北荒 2020-12-19 17:30

I try open camera following way:

...
    private void runCamera() {
        String storageState = Environment.getExternalStorageState();
        if (storageS         


        
3条回答
  •  猫巷女王i
    2020-12-19 18:18

    onDestroy is not guaranteed to be called. Make sure you save persistent state in onPause rather than onStop and onDestroy. You should never rely on either onStop or onDestroy to be called.

提交回复
热议问题