I think the real question is: if Activity A gets killed by the time B
finishes, will A be recreated to deliver the result?
It seems possible technically, since the information is there (in
Android framework), but does it actually work this way?
Anyone knows for sure?
-- Kostya
21.07.2010 0:39, TreKing ?????:
On Mon, Jul 19, 2010 at 10:16 AM, Jin Chiu <[email protected]
<mailto:[email protected]>> wrote:
Is there an exception in the lifetime rules for a parent
activity that's in the background after invoking
startActivityForResult()?
Not that I'm aware of.
From my understanding, in low memory scenarios, the background
activities
are killed before the foreground.
Right.
Does this rule still apply even if the background activity started
the foreground one for the purpose of obtaining some result?
I believe so.
In this case, I think it would make sense for the foreground
child activity to get killed first or to equalize the lifetime of
the parent and child.
No, that does not make sense.
So user starts activity A, then does something to launch activity B
from A. Now they are working in B and low memory hits. You think it
would make sense for Android to kill B, the activity the user is using
in this case?
Why is this a problem for you?
-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en