Are you sending a request to the server in the implementation of the 
'onCreateDialog(...)' method? If so, this is not good. The onCreateDialog is 
called by the OS when the hosting activity is recreated due to a config 
change when a dialog is shown using the showDialog method (i.e. an 
activity-managed dialog). This is perfectly normal behavior.

Call 'showDialog' just *after *you send an (asynchronous) request to the 
server and call 'dismissDialog' when the server returns a response. Usually, 
do not code anything in the onCreateDialog except for building an 
AlertDialog object.

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