Thanks for your response, I use this attribute in the AndroidManifest.xml but I want to know if there is any possibility to get the orientation how the phone is held when I the view is always in landscape mode? Von: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] Im Auftrag von dillirao malipeddi Gesendet: Donnerstag, 19. Februar 2009 13:55 An: android-developers@googlegroups.com Betreff: [android-developers] Re: get orientation via SensorListener Hi if you want to display your Activity in only one mode (landscape / portrait) in your androidmanifest.xml file set android:screenOrientation="portrait" or android:screenOrientation="landscape" like example <activity android:name="List14" android:screenOrientation="portrait" android:label="myWindow"></activity> for the Activities you want On Thu, Feb 19, 2009 at 5:23 PM, Christian Wiesbauer <christian.wiesba...@bdc.at> wrote: Hi, I have a view which is always displayed in landscape. So I use the "onSensorChanged (int sensor, float[] values)" method from SensorListener to find out how the phone is held. Does anybody know the ranges of values[0], values[1] and values[2] to find out the orientation (landscape or portrait)? Thanks and best regards Christian Wiesbauer
-- Dilli Rao. M ARIJASOFT +91 - 9703073540 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---