简体   繁体   中英

Android why is activity visible after onStop called

I have placed prints in all my activity call backs and what I am seeing is a sequence onStart()->onResume()->onStop() but after onStop is called I see the same activity the main activity displaying. Docs indicate this is called when activity is no longer visible but it looks to me like its getting called when my service is put in the foreground. So which one is guaranteed to be called when it becomes not visible? onStop() was called but my activity is still visible and user can interact with it.

在此处输入图片说明

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