[Android] preparations for using Google APIs

Source: Internet
Author: User
Tags certificate fingerprint sha1 encryption android sdk manager
I. OriginRecently, Google OAuth and Google Map need to be used. Before using these services of Google, there are some similar preparations to be done. These tasks include installing Google Play Services, generating certificate fingerprints, and creating Client IDs. 2. Install Google Play servicesGoogle Map APIs are integrated into the Google Play Services package. You can download this package using the Android Sdk Manager at: Extras-> Google Play Services. Iii. signature certificate fingerprintTo use the Google service, you must first encrypt the Android signature certificate with SHA, and then register the result with Google. Android's Debug signature certificate is different from the release signature certificate. Android's Debug signature certificate is different on different machines. Therefore, in actual development, the same project usually needs to produce multiple fingerprints and register these fingerprints on the Google side. The following describes how to generate the fingerprint of the Debug signature certificate: First, find the path of the Debug key. Preference-> Android-> Build-> Default debug keystore, then run the command keytool-list-alias androiddebugkey-v-keystore "full path of your debug. keystore FILE "-storepass android-keypass android, where full path of your debug. keystore FILE, which must be replaced with the Debug Key Path. The result is as follows:
OAuth1 requires MD5. After oau22. use SHA1 instead. Here, only the SHA1 encryption result is required. 4. Apply for client IDGo to https://code.google.com/apis/lele/. if there is no specific purpose, register a project first, and then apply for a client ID for the project. When applying for a client ID, you need to enter the signature certificate fingerprint and the package name of the android program, as shown in: The result is as shown in, in this way, the android program corresponding to the package name and signature can use the Google API .. 5. ReferencesHttp://www.cnblogs.com/lanbaoer/archive/2013/01/09/2851672.html https://developers.google.com/maps/documentation/android/start#installing_the_google_maps_android_v2_api
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: 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.