Android Baidu positioning is displayed on the map. Click the pop-up bubble

Source: Internet
Author: User

Android Baidu positioning is displayed on the map. Click the pop-up bubble

1. Apply for a key on the Baidu map page. Note that the key corresponds to the project package name and digital signature one by one. Http:// Title = % E9 % A6 % 96% E9 % A1 % B5

2. Download the corresponding sdk package:

3. Create a project and add the corresponding package

Add development keys and required permissions to AndroidManifest;

(1) Add a development Key to the application


2) Add required permissions


Step 3: add the layout file. Use the LinearLayout in the code to add the mapview.

Android: layout_width = "fill_parent" android: layout_height = "fill_parent" android: orientation = "vertical">

You can also do this:


First, we can set some configuration information in the Code, such as removing the zoom control.

Main Code:

Complete demo:


Related Article

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: 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.