Try looking at the SensorManager class ... You can do a sensor fusion
of the accelerometer with the magnetometer to get the device
orientation.  There's tons of examples out there.  With just the
accelerometer it will be more difficult.

Also if you are simply looking for how the device is oriented, you can
use WindowManager.getDefaultDisplay().getRotation() (2.2+)
or .getOrientation() (2.1-)


On Jun 27, 11:05 am, Amita Dev <[email protected]> wrote:
> Hi,
>     I am not able to get whether phone is tilted right / left or from top up
> / bottom up!
> I am trying to use Accelerometer sensor but output is very difficult to
> interpret!
>
> Any suggestions / document so that I can know tilt position of phone?
>
> Thanks,
> -A

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