简体   繁体   中英

Android Activity disappearing - Activity Lifecycle

I never experienced this, what's going wrong?

I have a launch Activity A that starts another Activity B (forResult). Then when I hit the home button, both go onPause. When I go back to my app via the Android App- chooser (or whatever it's called, when you longpress the home button), Activity B gets destroyed.

How can I resume Activity B instead?

I may be wrong, but it sounds like you encountered with a known issue: Activity stack behaves incorrectly during the first run of an app when started from Eclipse .

Also check this issue (this is actually the same issue, but reported by another user): App launch fundamentally broken when app is launched via browser, market install or market update .

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