Hi

I have GPRS and WiFi On my Android mobile.
Now i download my application through WiFi and launch this
application .Now this application connect to some public server so in
middle of application i go to WiFi setting and put it off .Now i again
go in my application ( which is constantly trying for getting data
connectivity ). Now since i off my wireless so application
automatically connect  to that public server ( with the help of
GPRS ). Now i go little further and after that i exit my application.

Now when i am exiting the application , application calls finish() on
activity , so onPause() called but after the onPause() ideally onStop
() must be called but somehow i got onRestart() and after that onStop
() called.

But according to Lifecycle of Activity onRestart() is called only
after onStop() not before it.

And this is happenning only the first time when i download and install
the application, not after that.
After the first time it will never happen .

So what is the reason behind it ?
Can anybody through some light on it ?

Regards
Rajesh Gupta

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