On Sat, Feb 8, 2014 at 6:38 AM, Rahul Kaushik <[email protected]>wrote:
> 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 You could probably just use onRetainNonConfigurationInstance<http://developer.android.com/reference/android/app/Activity.html#onRetainNonConfigurationInstance()> or onRetainCustomNonConfigurationInstance<http://developer.android.com/reference/android/support/v4/app/FragmentActivity.html#onRetainCustomNonConfigurationInstance()> . Return the root view of the hierarchy in the first instance, then get it back in the next instance and reset it. ------------------------------------------------------------------------------------------------- TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago transit tracking app for Android-powered devices -- 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.

