Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Using Google Maps

To include Google Maps in your application, you need to download both Google APIs for Android and create a virtual device that targets the Android OS with the Google APIs.

First, navigate to your Android SDK location, go to Tools, and run the Android file. This is the Android SDK and AVD Manager you have used in the past. Select Available Packages and select the Google APIs by Google Inc. for the relevant API level you want to target. An example is shown in Figure 13.7.

Once all that is installed, create a virtual device using the Google API as the target, as shown in Figure 13.8. Once this is set up, you will need to have a Google Maps API key to use the maps in this application. You can download this from the Android developer website at http://code.google.com/android/maps-api-signup.html.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial