onStart gets called during the initial startup. onRestart does not, it's
strictly for the "went away and came back" case.
Using it instead onStart / onResume would depend on how the code is
structured, the motivation being, to not repeat any time-consuming
operations that were already done in onCreate during the normal activity
startup sequence.
-- Kostya
14.11.2011 0:29, TreKing ?????:
On Sun, Nov 13, 2011 at 10:18 AM, Kostya Vasilyev <[email protected]
<mailto:[email protected]>> wrote:
+ onRestart(): update the UI and data state (if needed) in case
the user switched away from the activity and came back.
Is there a benefit to this over just using onStart(), which will also
be called in this scenario?
Just curious as I've never found a reason to use this particular method.
-------------------------------------------------------------------------------------------------
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 Vasilyev
--
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