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

2011-10-15 Thread Ben Lee
On Fri, Oct 14, 2011 at 8:07 PM, TreKing treking...@gmail.com wrote: On Fri, Oct 14, 2011 at 4:40 AM, nikki nikhileshsingh...@gmail.comwrote: My confusion shall I handle onConfigurationChange for orientation which will stop android to create a new activity or i should not handle

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

2011-10-14 Thread Flo
Let Android handle it. Just create a second layout folder called layout-land and put all your landscape layouts in. The layouts must have the same file name like the layouts in the normal layout folder for portrait mode. Android will pick the right folder to get the layout from. On landscape mode

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

2011-10-14 Thread nikki
Thanks Flo for quick reply. In my case the landscape layout files have no changes they are as same as portrait, that's why i haven't created a separate landscape folder for layout(layout_land). So on change of orientation the android will pick the file from layout folder only. My confusion shall

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

2011-10-14 Thread TreKing
On Fri, Oct 14, 2011 at 4:40 AM, nikki nikhileshsingh...@gmail.com 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

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

2011-10-14 Thread Studio LFP
There has been a decent amount of conversation on this subject and there's no right answer. Regardless of which way you pick, make sure you understand the pros and cons. If you let Android do the work for you, make sure you understand that your application can be killed off and restarted at