Re: [android-developers] Re: Best approach for onConfiguratinChange()

2011-10-14 Thread TreKing
On Fri, Oct 14, 2011 at 4:40 AM, nikki  wrote:

> My confusion shall I handle onConfigurationChange for orientation which
> will stop android to create a new activity or i should not handle
> onConfigurationChange and let android do the life cycle process complete.
>

In general, the latter, unless you have a good reason and know what you're
doing.

-
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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Best approach for onConfiguratinChange()

2011-10-15 Thread Ben Lee
On Fri, Oct 14, 2011 at 8:07 PM, TreKing  wrote:

> On Fri, Oct 14, 2011 at 4:40 AM, nikki wrote:
>
>> My confusion shall I handle onConfigurationChange for orientation which
>> will stop android to create a new activity or i should not handle
>> onConfigurationChange and let android do the life cycle process complete.
>>
>
> In general, the latter, unless you have a good reason and know what you're
> doing.
>
Let android handle it should be your first choice.
But if creating a new activity is too expensive for your app, you may want
to handle the orientation yourself. Since your layout are the same, I guess
it won't be very complicate to handle orientation change by yourself.

>
>
> -
> 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 android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Best Regards,
Ben Lee

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en