Android SDK: Build a shopping center search application (1)-Mapview & amp; Location

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.