By default the activity gets recreated on certain events such as 
orientation change. This is, as far as I know, the preferred behavior. You 
can handle these so-called "runtime changes" (such as orientation change, 
but there are more events that trigger activity re-creation such as changed 
system language) yourself by specifying the android:configChanges attribute 
of your activity in the manifest XML file. Handling orientation changes 
yourself will basically tell Android not to re-create the activity in case 
of an orientation change, and therefore your view hierarchy will be 
retained. See 
here<http://developer.android.com/guide/topics/resources/runtime-changes.html>for
 more information.

On Saturday, February 8, 2014 6:38:40 AM UTC-6, rahul kaushik wrote:
>
> Hi,
>
> I created dynamic controls on view ,i call the this view creation at 
> OnCreate when i changed the orientation the activity call the OnCreate 
> again and it consume same amount of time which which was created at very 
> first time ,can i reduce this time on orientaion 
> Pls Suggest
>
> Thanks
> RK
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to