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

Get Learning MIT App Inventor: A Hands-On Guide to Building Your Own Android Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.