Passing the current location to another mapping app
Video: Passing the current location to another mapping appPassing the current location to another mapping app provides you with in-depth training on Developer. Taught by David Gassner as part of the Building Mobile Apps with Google Maps Android API v2
- Next steps
Passing the current location to another mapping app provides you with in-depth training on Developer. Taught by David Gassner as part of the Building Mobile Apps with Google Maps Android API v2
Maps make mobile apps more useful; they can help users find businesses and areas of interest, get directions, or gain insights into new communities. In this course, learn to add interactive maps to your Android apps with Google Maps Android API v2. David Gassner first shows you how to set up the tools, get an API key, and import and link to Google Play services. After an introduction to presenting simple maps with the MapView and MapFragment classes, the course describes how to set a map's initial state, switch between different map types, work with map markers, draw shapes, and work with zoom controls, the My Location button, and various user gestures. Finally, learn to add a map to an existing app and prepare it for distribution.
Note: An Android device with Android 3.0 (Honeycomb) or higher, and that has Google Play Store installed, is required to use the course exercises. (Kindle Fire and Nook devices do not qualify.) Finished mapping apps can be deployed on Android 2.2 (Froyo) or later.
- Setting up the developer tools
- Adding required permissions
- Getting a Google Maps API key
- Importing and linking the Google Play services
- Setting a map's initial state
- Geocoding an address
- Getting the current location programmatically
- Adding map markers
- Handling marker events
- Drawing lines, polygons, and circles
- Adding maps to existing apps
Find answers to the most frequently asked questions about Building Mobile Apps with Google Maps Android API v2 .
Here are the FAQs that matched your search "" :
- Q: In the Chapter 2 movie "Checking the device for the Google Play services APK," when I create my first Google Maps app, the app crashes when I call the custom method servicesOK(). The error in LogCat starts with:"java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value."How do I fix this?
- A: The latest version of the Google Play services library has a new required meta-data tag in the app manifest. Add the following tag within the <application> tag:<meta-data
android:value="@integer/google_play_services_version" />After rebuilding the app, the error should be resolved.
Sorry, there are no matches for your search "" —to search again, type in another word or phrase and click search.