O'Reilly logo

Learning MIT App Inventor: A Hands-On Guide to Building Your Own Android Apps by Mark Sherman, Derek Walter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

Sensors play an important part in app development because they allow the device to interact with location and data. Using sensors opens up many different opportunities in the kind of apps you can build and how they function.

The Location Sensor gives you the power of the GPS chip and other location data, which can be used, saved, and displayed. Visualizing a point on a map is easy using the Activity Starter.

The Accelerometer Sensor measures acceleration from motion and gravity and can be used to detect shaking as well as specific motions. It can approximate tilt because gravity is always accelerating the device (and everything else) downward.

The Orientation Sensor gives direct access to the phone’s understanding of tilt, on two axes ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required