O'Reilly logo

Learning Mobile App Development: A Hands-on Guide to Building Apps with iOS and Android by Michael Eierman, Jakob Iversen

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

An Android device provides many hardware features that enable the creation of innovative apps or enhance the capabilities of more traditional apps. The approach used to access these features is dependent on the hardware device. However, regardless of the type of hardware to be accessed, the developer must always include a permission to use the item in the app’s manifest file. Sensors that may be used to detect the environment that the device is currently in or how the device is moving are accessed by enabling methods in your code that listen for status changes of the sensor. The app can then use those status changes to do something useful for the user.

Hardware features provided by the Android system that may be used through an app (such ...

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