Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Augmented Reality for Android Application Development

You're reading from   Augmented Reality for Android Application Development As an Android developer, including Augmented Reality (AR) in your mobile apps could be a profitable new string to your bow. This tutorial takes you through every aspect of AR for Android with lots of hands-on exercises.

Arrow left icon
Product type Paperback
Published in Nov 2013
Publisher Packt
ISBN-13 9781782168553
Length 134 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

Knowing where you look – handling inertial sensors


With the previous example and access to GPS location, we can now update a user's location and be able to do a basic tracking in Augmented Reality. However, this tracking is only considering position of the user and not his or her orientation. If, for example, the user rotates the phone, nothing will happen, with changes being effective only if he is moving. For that we need to be able to detect changes in rotation for the user; this is where inertial sensors come in. The inertial sensors can be used to detect changes in orientation.

Understanding sensors

In the current generation of mobile phones, three types of sensors are available and useful for orientation:

  • Accelerometers: These sensors detect the proper acceleration of your phone, also called g-force acceleration. Your phone is generally equipped with multi-axis model to deliver you acceleration in the 3 axes: pitch, roll, and tilt of your phone. They were the first sensors made available...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image