Join David Gassner for an in-depth discussion in this video Adding required permissions to a project, part of Building Mobile Apps with Google Maps Android API v2.
There are many steps you need to follow to…get a first application with Google Maps API running.…The first step is to add permissions to the application manifest.…I'll open an application from the exercise files, a simple Hello World application.…I'll select File, Import. Existing projects into workspace.…And then I'll choose an archive file.…I'll go to my exercise files, to the chapter 02 FirstApp.…And I'll choose this archive, Permissions.zip.…
I'll complete the import process and that copies the project to my workspace.…This is a very simple starting application.…I'll open the main activity and then run the application on my device.…If prompted for USB debugging, i'll touch okay.…Then I'll come back to eclipse and I'll select…the device, and click okay, and the application loads up.…
So now, I'm going to modify the application by adding…required permissions to the Application manifest.…First, note the package name of this very simple application com.example.gmapsApp.…The first part of the package, com.example is a reserved domain.…
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?