+ All Categories
Home > Documents > Hello Google Maps

Hello Google Maps

Date post: 10-Feb-2016
Category:
Upload: archer
View: 53 times
Download: 0 times
Share this document with a friend
Description:
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. - PowerPoint PPT Presentation
Popular Tags:
17
Hello Google Maps Google Map View
Transcript
Page 1: Hello Google Maps

Hello Google MapsGoogle Map View

Page 2: Hello Google Maps

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

Before Programming

Page 3: Hello Google Maps

Google Maps library 

Page 4: Hello Google Maps

Property Setting

Page 5: Hello Google Maps

Obtaining a Maps API Key http://code.google.com/android/add-ons/goo

gle-apis/mapkey.html

Page 6: Hello Google Maps
Page 7: Hello Google Maps
Page 8: Hello Google Maps
Page 9: Hello Google Maps

Programming

Page 10: Hello Google Maps

Step 1: Start a new project named HelloGoogleMaps.

Page 11: Hello Google Maps

Step 2: Declare Maps library in the Android Manifest

Page 12: Hello Google Maps

Must request internet permission. In the manifest file, add the following as a child of the <manifest> element:

Step 3: Access to the Internet

Page 13: Hello Google Maps

Step 4:Give the map some more space getting rid of the title bar with the

"NoTitleBar" theme

Page 14: Hello Google Maps

Step 5: Set MapView layout

Page 15: Hello Google Maps

Step 6: CodingUsing 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

Page 16: Hello Google Maps

Remember, you must have an AVD configured to use the Google APIs target, or be using a development device that includes the Maps library.)

Step 7: Run it

Page 17: Hello Google Maps

Recommended