Re: [android-developers] Re: getOrientation() madness

2011-08-24 Thread Yahor Paulavets
Hello, I had the same issue with determination of orientation for different devices: xoom, samsug galaxy tab, and samsung galaxy tab 10.1 The main trick, is that devices has theirs own 'natural'/'default' orientation. This orientation has index 0. For 10.1 samsung it is LANDSCAPE. For samsung

Re: [android-developers] Re: getOrientation() madness

2011-08-24 Thread Greg Donald
On Wed, Aug 24, 2011 at 3:37 AM, Yahor Paulavets ypaulav...@agilefusion.com wrote: I have investigated and implemented the best way for determination of orientation: http://softteco.blogspot.com/2011/08/universal-way-to-detect-landscape-mode.html That's exactly what I ended up doing, comparing

Re: [android-developers] Re: getOrientation() madness

2011-08-22 Thread Greg Donald
On Sun, Aug 21, 2011 at 7:48 PM, Dianne Hackborn hack...@android.com wrote: Because we are sometimes dumb.  That is why it is deprecated and replaced with a method named getRotation() in current versions of the platform. A nice person spent a long time harassing me about this change because

[android-developers] Re: getOrientation() madness

2011-08-22 Thread Roger
First, I recommend you try to figure out the screen by getting the DisplayMetrics instead. Don't use the orientation/rotation. The device implementer gets to decide what the rotation means, so the screen rotation is fundamentally divorced from the concept of landscape or portrait (yep, I've seen

Re: [android-developers] Re: getOrientation() madness

2011-08-22 Thread Dianne Hackborn
On Mon, Aug 22, 2011 at 10:40 AM, Greg Donald gdon...@gmail.com wrote: From where I sit Android is becoming really hard to keep up with. I have a ton of 2.1 users still so I need to stay with API version 7. The current API is 13, that's almost double the version I need to stay at. I can't

[android-developers] Re: getOrientation() madness

2011-08-22 Thread Indicator Veritatis
Is it really true that documentation is disappearing for old APIs? Then launch your Android SDK and AVD Manager and download the old stuff. It goes back to level 7, which in turn includes documentation for a lot of the old, deprecated stuff. That said, now that you mention that and I see that

[android-developers] Re: getOrientation() madness

2011-08-22 Thread Chris
For real fun, try last minute checkins before a release comprised entirely of misleading deprecation annotations. Great fun. -- 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] Re: getOrientation() madness

2011-08-21 Thread Adam Ratana
This isn't orientation, though, this is rotation. So your Tab in landscape is Surface.ROTATION_0, while your phone in portrait is also going to correspond to Surface.ROTATION_0. It's not the API that is lying to you. On Sunday, August 21, 2011 1:25:12 AM UTC-4, Greg Donald wrote: Using API

Re: [android-developers] Re: getOrientation() madness

2011-08-21 Thread Greg Donald
On Sun, Aug 21, 2011 at 1:12 AM, Adam Ratana adam.rat...@gmail.com wrote: This isn't orientation, though, this is rotation. I wonder why they named the method getOrientation() then? -- Greg Donald -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Re: getOrientation() madness

2011-08-21 Thread Dianne Hackborn
Because we are sometimes dumb. That is why it is deprecated and replaced with a method named getRotation() in current versions of the platform. A nice person spent a long time harassing me about this change because they insistent that we were evil vile losers who didn't understand what app