Join David Gassner for an in-depth discussion in this video Checking the device for the Google Play services APK, part of Building Mobile Apps with Google Maps Android API v2.
We're now at the point where there are dependencies for each new project, and…you have to set up those dependencies…whenever you import that project into eclipse.…This exercise is all about adding code to the…application to check for the Google Play services APK.…But first, I'll show you the steps that you need to follow for…each project that you import, in Eclipse I'll go to the import process,…I'll choose general, existing projects into work space and Archive file.…
And I'll click Browse.…I'll be using this project CheckForAPK. I'll click open and…complete the import process.…The first thing you need to do, is check for any errors.…And the most common issue that you might see, is that classes like…Google map that are a part of the Google play services library aren't available.…If that happens to you after you import…a project, relink the Google play services library.…Go to the Project and go to its Properties.…
Then, go to…Android > Google Play Services Library.…If you see an x there, Remove the library, and then re-add it.…
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
Skill Level Intermediate
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?