Hi YuviDroid

So this method is just a workround? I still need to find out why my app will
crash while orientation changes?

On Sat, Jul 24, 2010 at 5:02 PM, YuviDroid <yuvidr...@gmail.com> wrote:

> 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 <xinxi...@gmail.com> 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 <xinxi...@gmail.com> 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 <treking...@gmail.com> wrote:
>>>
>>>> On Fri, Jul 23, 2010 at 12:48 PM, Alex Xin <xinxi...@gmail.com> 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
>>>> android-developers@googlegroups.com
>>>> To unsubscribe from this group, send email to
>>>> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
>>>> 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 android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
>> 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 android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> 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 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

Reply via email to