T On Feb 9, 2014 12:44 PM, <[email protected]> wrote:
> Today's Topic Summary > > Group: http://groups.google.com/group/android-developers/topics > > - Activty on orientation <#14415481fa63859c_group_thread_0> [3 Updates] > - Google Play Services adds nearly 10,000 > methods!<#14415481fa63859c_group_thread_1>[1 Update] > > Activty on > orientation<http://groups.google.com/group/android-developers/t/9c81f63cec15bc89> > > Rahul Kaushik <[email protected]> Feb 08 06:08PM +0530 > > 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 > > > > > Nobu Games <[email protected]> Feb 08 08:41AM -0800 > > 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: > > > > > TreKing <[email protected]> Feb 08 09:32PM -0600 > > > 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 > > > > Google Play Services adds nearly 10,000 > methods!<http://groups.google.com/group/android-developers/t/7b2736cfe99a7524> > > b0b <[email protected]> Feb 08 05:04AM -0800 > > Yes, the monolithic structure of the Play Service jar sucks for the > reasons > you mention. > However you can generate a new jar from it with jarjar, extracting > only the > classes you need and their dependencies. > I had to do it for a project that otherwise would hit the 64K dex > limit. > > > On Friday, 7 February 2014 22:14:50 UTC+1, Jeff Campbell wrote: > > > > -- > 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. > -- 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.

