This is simply not a configuration change.  There is no notification the
platform provides for when it does this, because it is invisible to the
environment the app is in.

On Thu, Jun 14, 2012 at 4:36 PM, Farmer <[email protected]> wrote:

> Thanks guys for your reply!
>
> I tried to set
> android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize",
> but it didn't help.
>
> To Hoang, I can understand that Configuration does not change when I flip
> the phone. Actually I am calling getRotation() to decide
> current display rotation. The thing is that I need a trigger to call the
> method when orientation is changing between landscape and
> reverse landscape. And onConfigurationChanged() is my first thought. Any
> idea?
>
> On Friday, June 8, 2012 1:26:08 AM UTC+8, Hoang DN wrote:
>>
>> Hi guy,
>>
>> In your case, actually, Configuration did not change, therefore the
>> method onConfigurationChanged() won't be called.
>> If you want handle this event, you can use
>> android.view.Display.**getRotation(). The returned value may be
>> Surface.ROTATION_0 (no rotation), Surface.ROTATION_90,
>> Surface.ROTATION_180, or Surface.ROTATION_270.
>>
>> Hope this useful for you. Good luck!
>>
>>
>> Br,
>> hoangdn
>>
>> On 7 Tháng Sáu, 23:49, Farmer <[email protected]> wrote:
>> > Hi there,
>> >
>> > On ICS, when I flip the phone between landscape and reverse landscape,
>> > it seems onConfigurationChanged() won't be called. How can I get
>> > notified when such event happens, or did I miss anything here?
>> >
>> > Thanks in advance!
>> >
>> > best,
>> > duanxiaotao
>
>  --
> 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
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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

Reply via email to