Why oncreate method called after startActivityForResult?

前端 未结 2 1216
北海茫月
北海茫月 2020-12-16 18:46

In my application i want to select image from Gallery and set the image in ListView. In my ListViewI have 16 rows. So when ever item click in

2条回答
  •  我在风中等你
    2020-12-16 19:24

    May be dialog with selection chooser is too huge for the system and it reduces memory by caching your application. Check is method onSaveInstanceState called before onCreate. If yes, then you can save needed data in bundle and load it in onCreate method

提交回复
热议问题