On Sat, Nov 12, 2011 at 6:56 PM, bob <[email protected]> wrote: > How does a layman decide which initialization code goes in onCreate > and which initialization code goes in onStart?
I wouldn't think as much about onStart() as onResume(). Stuff that you want ONLY going on while the activity is in the foreground would be initialized in onResume() and cleaned up in onPause(). Stuff that has little ongoing cost and therefore can remain set up even while the activity is in the background can be initialized in onCreate() and cleaned up (if needed) in onDestroy(). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- 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

