1 / 17

Hello Google Maps

Hello Google Maps. Google Map View. Before Programming. Install Google Maps library installed in your SDK environment After install Set your project properties to use the build target called "Google APIs by Google Inc .“ Obtaining a Maps API Key. Google Maps library . Property Setting.

archer
Télécharger la présentation

Hello Google Maps

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Hello Google Maps Google Map View

  2. Before Programming • Install • Google Maps library installed in your SDK environment • After install • Set your project properties to use the build target called "Google APIs by Google Inc.“ • Obtaining a Maps API Key

  3. Google Maps library 

  4. Property Setting

  5. Obtaining a Maps API Key • http://code.google.com/android/add-ons/google-apis/mapkey.html

  6. Programming

  7. Step 1: Start a new project named HelloGoogleMaps.

  8. Step 2: Declare Maps library in the Android Manifest

  9. Step 3: Access to the Internet • Must request internet permission. • In the manifest file, add the following as a child of the <manifest> element:

  10. Step 4:Give the map some more space getting rid of the title bar with the "NoTitleBar" theme

  11. Step 5:Set MapView layout

  12. Step 6: Coding Using MapActivity This method is required for some accounting from the Maps service to see if you're currently displaying any route information. In this case, you're not, so return false. Simple zoom feature is built-in

  13. Step 7: Run it • Remember, you must have an AVD configured to use the Google APIs target, or be using a development device that includes the Maps library.)

More Related