Android Gaode map positioning SDK integration and map function implementation

1: Baidu Gaode official website, and then create an application

website: http://lbs.amap.com/

1. Find the console and create an application

2. Add the key name, pay attention to the naming convention, and the following SHA1 and package name

3. Click gradle on the right and select signaling report. There will be a command below. Wait a few minutes to get SHA1

4. Add package name

5. Get key

2: Download the location SDK, download the map SDK and location SDK, then import the project, import and then add as library. So files can be downloaded according to their own needs

Download address: http://lbs.amap.com/api/android-location-sdk/download/

3: Configure the key and register the service under the application of androidmanifest.xml

4: Add permissions

5: Implementation of map XML layout

6: Map activity implementation

design sketch:

7: Realization of positioning function

1. Renderings

2. Implementation of activity

So far, the positioning and map display functions have been realized. Don't spray it. You can learn from what's useful.

The above is the whole content of this article. I hope the content of this article can bring some help to your study or work. At the same time, I also hope to support a lot of programming tips!

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>