Hi, within my App I use a View where the drawing function is overwritten so that I can paint my own things. To get a correct result I evaluate the screen size and then draw within the returned available range.
Now it might happen that the user rotates its tablet and switches from landscape to portrait orientation. To detect that I'm using a SensorManager that notifies me about orientation changes. Unfortunately I never get a portrait-orientation returned but only Configuration.ORIENTATION_SQUARE when the tabled is rotated from landscape view to portrait. Beside of that current width and height (returned by WindowManager) are equal after rotation, so I really get a square-sized view and parts of my display are left unused. Amazingly Configuration.ORIENTATION_LANDSCAPE works correct, including return of the correct screen dimensions. What could be the reason for this behaviour? Thx Elmi -- 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

