onStop and onDestroy may or may not be called.  onPause is the last
method you are guaranteed will be called.  Check out the activity life
cycle:  http://developer.android.com/reference/android/app/Activity.html

On Oct 14, 1:04 am, mariush <mariusz...@gmail.com> wrote:
> Hi,
> i`ve got some problems with finish() method.
> I expect what after calling on my Activity finish() method  onStop and
> onDestroy must be triggered(or am wrong??), in majority of examples
> they are, but...
> Scenario:
> - reboot phone
> - launch activity
> - invoke finish()
> onPause is triggered but afterwards they are no calls to onStop() and
> onDestroy()...
> I`ve noticed, that those calls are triggered after launching any other
> activity...
> Any ideas why this is happening?
> Regard
> Mariush

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to