[android-developers] Is onDetachedFromWindow more reliable than onStop
Hi,
We developed two heavy apps, A,B.
A startActivity B and B comes back to A by startActivity too.
We record one flag in A's onStop to remember going to background and
restore that flag in onStart.
After switching between A and B rapidly, we found A's onStop often get
called by system later than B's onResume.
Sometimes even later than A's second onResume.
So we have to find the other way to tell foreground and backgroud.
We got two proposals:
1) onDetachedFromWindow
2) ActivityManager.getRunningTasks
Any words about it will be appreciated.
James
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home