I have a service that performs http operations and then notifies an
activity with the result. The result is normally data but it can also
be a success/error notification.

e.g. this is one of the operations of the service:
logon(String user, String pwd, ILogonListener callback)

It works ok most of the time but when the user changes the screen
orientation the notification from the service can get lost while the
activity is being recreated.

This is the sequence of events I am having problems with:

Activity
--------

->onCreate
->onResume

--> user performs a logon and passes a listener to receive the result

--> the user changes the screen orientation

->onPause
->onStop
->onDestroy

--> the notification arrives and fails to show the error (if any)
because the activity is being recreated.

->onCreate
...

Can anyone think of a solution to this?

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