Check the signatures for onCreate/onStart/onRestart/onResume/onPause/
onStop/onDestroy; they are all protected! Which means you cannot call
them manually yourself. All you can do is to start an activity (e.g.
startActivity(new Intent(context, YourActivity.class))) or to finish
the activity (activity.finish()). When you start another activity, the
workflow for your current activity for pausing/stopping/destroying it
executes automatically. You shouldn't need to call any of the activity
workflow methods manually. If you think you need, probably your
understanding of the framework is not right.

-------------------------------------------------
Ali Chousein
Weather-Buddy
http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com
https://marketplace.cisco.com/apphq/store/products/994

-- 
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

Reply via email to