简体   繁体   中英

Android which activity resumed after crash

When my app crashes always the activity 2-3 activities back is started. Why is this? Can I change this to start always the most recent activity (before the crashing one, of course)?

It may be because you called finish() method in the activity which is calling next activity which get crashed. Try to remove that finish() method from the calling activity.

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