[android-developers] Re: why progress dialog dismiss after rotating the screen landscap to portrait
It is being dismissed because during rotation your Activity is being destroyed and recreated and hence the Context for your dialog gets destroyed.
If you would like your dialog to be recreated after rotation use Activity#showDialog(dialogId) instead, as this will automatically take care of reconstruction of the dialog.
William
On Tuesday, November 27, 2012 1:36:23 PM UTC+10, monty wrote:
-- On Tuesday, November 27, 2012 1:36:23 PM UTC+10, monty wrote:
Hello,i am using android annotation , in my app i am using progress dialog but after rotation the screen it dismiss(why).
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home