Android Studio builds Baidu map steps

Source: Internet
Author: User
Tags sha1

1, create a new project, get Android Studio SHA1 value (Android Studio terminal input Line shell command: keytool-v-list-keystore debug.keystore)

2, to Baidu Map official Application key (SHA1; package name)

3, App/libs directory into the Baidumapapi_vx_x_x.jar package and Locsdk.jar (need to right click on the jar file add library)

Under the new Jnilibsso/armeabi directory in the src/main/directory, put Libbaidumapsdk_vx_x_x_x.so and liblocsdk_vx_x_x_x.so

4, Manifest.xml plus a variety of permissions: Network and positioning and Meta-data plus the application of key

5, new baseapplication and add sdkinitializer.initialize (this) in OnCreate ();

6, Manifest.xml plus application Android:neme= ". Baseapplication "

7. Add Mapview control to the layout file

8, the Java Code Display map Mmapview.getmap ();

Android Studio builds Baidu map steps

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.