This tutorial will explore how to use the Google map API to display information points (POI), and use the location service provided by the mobile phone to display the POI location that can be searched at the current location. In this case, we should use malls as POI.
I divided the tutorial into two parts.
The first section (in this section) describes:
1. Use of MapView objects
2. Use MD5 ciphertext to obtain a Google Map API key
3. Implement a location listener to get your current location
The second part will include:
1. Use the external Library Class in the Application
2. Create information points that show your current location and surrounding area
Word-spacing: 0px;-webkit-text-decorations-in-effect: none;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px "> now let's get started!
> Step 1: Create a new Android Project
Start Eclipse IDE and create a new Android project.
File> Create> New Android Project
Use the following settings to create a new project:
Project name: MallFinder
Generate target: Google APIs Platform-2.1 API Level 7
Application name: Mall Finder
Package name: Com. shawnbe. mallfinder
Create Activity: MallFinderActivity
Minimum SDK version: 7
After setting, click Finish.
> Step 2: register with Google to obtain the API key
Because MapView objects use Google Maps, You need to register an API key with Google and agree to the terms of service before using them. The registration process is quite simple. Want to know