December 2013
Intermediate to advanced
464 pages
14h 46m
English
In this first approach to getting location, the ContactMapActivity will take an entered address and look up and display the GPS coordinates of the address. This process is called geocoding. The first step is to create the layout in activity_contact_map.xml. For now, this layout will not use a map object. Refer to Figure 7.5 to code this layout. The exact layout is up to you—you’ve done all this before. However, to match to the code, use the following IDs for the widgets:
Get Coordinates Button–@+id/buttonGetLocation
Latitude output TextView–@+id/textLatitude
Longitude output TextView–@+id/textLongitude
Accuracy output TextView–@+id/textAccuracy
Figure 7.5 Initial Layout for getting location.
Obviously, ...
Read now
Unlock full access