I got solution for that android:configChange="Orientation" but i am using 
android annotation so i need some thing in annotation..i found 
@NonConfigurationInstance but i dont know how to use it.

On Tuesday, November 27, 2012 10:45:41 AM UTC+5:30, William Ferguson wrote:
>
> True, but that doesn't mean it won't work.
>
> Non-deprecated mechanism is to use the FragmentManager, but I have no idea 
> how your dialog will behaves wrt Activity rotation. You didn't elaborate on 
> exactly how you are creating your Dialog in the first place. Are you 
> already using the FragmentManager, perhaps showing some of your code might 
> help.
>
> William
>
> On Tuesday, November 27, 2012 2:52:20 PM UTC+10, monty wrote:
>>
>> but showDialog is deprecated.
>>
>> On Tuesday, November 27, 2012 9:43:50 AM UTC+5:30, William Ferguson wrote:
>>>
>>> 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:
>>>>
>>>> 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 [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