Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Development > Application Development > Developer 101

Developer 101 101 Tutorials



Reply
 
LinkBack Thread Tools
Old February 2nd, 2012, 06:19 AM   #1 (permalink)
New Member
 
Join Date: Aug 2010
Posts: 8
 
Device(s):
Thanks: 1
Thanked 0 Times in 0 Posts
Default How to get rotation around plane different than XY in Android?

getDefaultDisplay().getRotation()

retrieves values like

Surface_ROTATION_0,
Surface_ROTATION_90,
Surface_ROTATION_180,
Surface_ROTATION_270
and so on, and that's around XY plane I guess, Am i right? What if I want to know the rotation in the XZ plane or YZ plane?

What I'm trying to achieve is, for example, if I need to calculate if a runner is stopping (and I can't use the GPS) where the runner can have the cellphone in different positions, I must know which axle is the one parallel to the floor in order to check on those values if there is any deceleration and is not that the cellphone is just "jumping" with the runner.

Thanks in advance. Guillermo.

polonskyg is offline  
Reply With Quote
Sponsors
Reply

Bookmarks

Tags
android, orientation, rotation, sensors


Go Back   Android Forums > Android Development > Application Development > Developer 101 User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 08:26 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo