Hi Matias,
thanks for your reply, but that's not the point. Because onStop() is
called when the activity is no longer visibile, it should be called
when the user presses the HOME or BACK button, and that is not
happening on the Nexus One... well not on mine at least :)

Zuli


On Mar 4, 8:23 pm, Matias Alberto de la Vega
<delavega.mat...@gmail.com> wrote:
> Zuli, onStop() is called when your Activity is no longer visible, this
> may happen if a new activity is created (full screen mode) and is
> positioned in front of yours, also it may be caused because another
> Activity is resumed and brought to front (also full screen) and in the
> last case onStop() is called when your Activity is about to be
> destroyed (prior to onDestroy). After onPause() is called there are
> two options, onRestart() is called to restart your Activity or
> onDestroy() is called to kill your activity. Hope this helped. Bye
>
> On 4 mar, 13:26, Zuli <paolo.zuli...@gmail.com> wrote:
>
>
>
> > Hi,
> > I have a problem with the activity lifecycle specifically on Nexus One
> > (2.1 running on emulator works fine).
> > If I just create a simple empty Activity with no special launchModes
> > that logs the calls on the onStart and onStop methods, this is what I
> > see:
>
> > - launch app: onStart called;
> > - home button: onStop NOT called;
> > - launch app: onStart NOT called;
> > - home button: onStop NOT called:
>
> > and so on. Sometimes if I press the back button then the onStop is not
> > called, but the when i launch the activity again the onStart is called
> > and right after the onStop is called.
> > Similar results with different launchModes...
>
> > What is going on? Can anyone confirm this?
>
> > Zuli
>
> > i found an android issue for the problem 
> > here:http://code.google.com/p/android/issues/detail?id=6094
> > and a similar thread 
> > herehttp://groups.google.com/group/android-developers/browse_thread/threa...

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