On Fri, Nov 28, 2008 at 1:23 AM, Ralf <[EMAIL PROTECTED]> wrote:
> On Thu, Nov 27, 2008 at 11:39 AM, Stoyan Damov <[EMAIL PROTECTED]> wrote:
>> I also don't want my activity to get restarted when the screen
>> orientation changes, so I set the "Config changes" attribute to
>> "mcc|mnc|locale|touchscreen|keyboard||fontScale"
>> and handle onConfigurationChanged myself. That's great too.
>
> You only need to check for keyboardHidden|orientation.
>

I don't want my app restarted when any of these settings change - e.g.
I don't care if user switched locale, MCC, MNC, etc.

>
>> Now, the thing is, that when onConfigurationChanged gets called, the
>> orientation is always reported as portrait, while I really want to
>> know that the user has changed it to landscape, so I can put a message
>> saying something like "landscape orientation is not supported".
>>
>> Is there a way to do that? Is there a way in which I can query the
>> device for it's physical orientation?
>
> Try using android.view.OrientationListener.
>

Thanks, I'll take a look!

Cheers

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