Skip to Main Content
Beginning Android Programming: Develop and Design
book

Beginning Android Programming: Develop and Design

by Chris Haseman, Kevin Grant
December 2013
Beginner content levelBeginner
320 pages
7h 54m
English
Peachpit Press
Content preview from Beginning Android Programming: Develop and Design

Chapter 9. Determining Locations and Using Maps

One of the chief benefits of building any mobile application is the ability to provide location-aware data to users. Android is no exception. Taking advantage of your user’s location to help them make informed decisions should always be in the back of your mind. There is, however, a little to know about the basics of determining and using the device’s location. I will show you a few tricks for speedy acquisition and then quickly show you how to display Android’s built-in Google Maps view.

Location Basics

All location information on Android’s systems is reached through Android’s LocationManager class. There is, as you might have guessed, a permission requirement before you can access the user’s ...

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.
Start your free trial

You might also like

Creating Android Applications: Develop and Design

Creating Android Applications: Develop and Design

Chris Haseman
Android Fragments

Android Fragments

Dave MacLean, Satya Komatineni

Publisher Resources

ISBN: 9780133572681Purchase book