When you specify "orientation" in configChanges you are telling the OS not to deal with orientation changes in your activity. Therefore, when you now rotate the phone you activity will not be recreated and the layout file will not be inflated again.
On Sat, Jul 24, 2010 at 2:56 AM, Alex Xin <[email protected]> wrote: > Hi, > > I found that if I add > > android:configChanges="keyboardHidden|orientation" > > in mainfest.xml for each activities, then everything works fine, no > crashes, no reset. Does anyone know why? > > Thanks a lot > > On Sat, Jul 24, 2010 at 8:23 AM, Alex Xin <[email protected]> wrote: > >> Hi TreKing >> >> I stored in my layout file at Project Folder\res\layout\main.xml, I have >> only one layout for different orientations and screen densities. >> >> Thanks >> >> Alex >> >> >> On Sat, Jul 24, 2010 at 3:03 AM, TreKing <[email protected]> wrote: >> >>> On Fri, Jul 23, 2010 at 12:48 PM, Alex Xin <[email protected]> wrote: >>> >>>> Could someone help me? I really don't know how to start to solve this >>>> issue? >>> >>> >>> Where are you storing the layout file? Which folder? >>> Do you have different layouts for different orientations and / or >>> different screen densities? >>> >>> >>> ------------------------------------------------------------------------------------------------- >>> 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]<android-developers%[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 post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- YuviDroid Check out Launch-X <http://android.yuvalsharon.net/launchx.php> (a widget to quickly access your favorite apps and contacts!) http://android.yuvalsharon.net -- 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

