Learning MIT App Inventor: A Hands-On Guide to Building Your Own Android Apps
by Derek Walter, Mark Sherman
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access