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. Create a layout that displays the latitude, longitude, and accuracy for the network sensor and for the GPS sensor. Add a listener for each and have it display its reported location in the appropriate onscreen widget. Run it on a device. Walk around with the app open to this screen and observe the differences.

2. Modify the layout in Exercise 1 to have a third set of latitude, longitude, and accuracy labeled best location. Code a method to test for the best location and put the values in these widgets. Run the app and again observe the results.

3. Modify the markers on the map to use a custom icon. You can download and use an open source graphics program such as Gimp to create your icon. You may have to work with the icon size to ...

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