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

Exercises

1. Modify the toolbar of the ContactActivity to display the proximity sensor readings. Add the proximity sensor service so that this works.

2. Modify the app so that when the user long-clicks the cell number of a contact, the text messaging service is opened instead of the phone service. You will have to have a permission in the manifest to send text (SMS) messages.

3. Modify the app to display an incoming text message as a Toast. You will have to register your app with a permission to read text (SMS) messages and set up a listener for text messages.

4. Modify the compass to report NW, NE, SE, and so on in addition to the N, W, S, and E headings.

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