简体   繁体   中英

onDestroy called before onActivityResult

我有这个活动A,在按钮上单击,它启动一个用于结果的活动,它是一个联系人选择器,当此活动开始时,调用A的PaPause,当我从联系人选择器返回时,以某种方式调用A的onDestroy,而onActivityResult不在都叫!

In general, onDestroy() gets called when an activity is finished or removed from the backstack. I hope you are not calling finish() in A before or after you are calling startActivityForResult(..) .

Can you go back from B (the contact picker) by pressing the back button?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM