Sử dụng Google Maps trong Android

Sử dụng Google Maps trong Android

Để sử dụng được Google Maps trong Android , ta cần có Google Maps Key. Trong bài lab này mình sẽ hướng dẫn các bước để lấy được nó.

Bước 1: Tìm vị trí file debug.keystore trong hệ thống

File dubug.keystore nằm trong thư mục “c:\users\USER\.android\debug.keystore”

Thay thế “USER” bằng tên user window bạn đang dùng.

Sử dụng Google Maps trong Android

Đường dẫn đến file debug.keystore

Bước 2: Chạy file keytool.exe trên hệ thống

Bây giờ ta chuyển đến file keytool.exe theo đường dẫn. “C:\Program Files\Java\jdk1.6.0\bin>keytool.exe”

Thay thế “jdk1.6.0” bằng tên phiên bản jdk mà các bạn đã cài trong máy.

Bước 3: Lấy mã MD5 fingerprint

Thực thi câu lệnh sau:

C:\Program Files\Java\jdk1.6.0\bin>keytool.exe -list -alias androiddebugkey -keystore "C:\users\user\.android\debug.keystore" -storepass android -keypass android 

Bước 4: Dùng mã MD5 fingerprint để lấy Google Maps API Key

Copy đoạn mã vừa lấy được.

Vào đường link này https://developers.google.com/maps/d...aps-api-signup. Dán đoạn mã MD5 fingerprint vào ô sau:

Click nút “Generate API Key”.

Bạn thấy bài viết này như thế nào?: 
No votes yet
Ảnh của Khanh Hoang

Khanh Hoang - Kenn

Kenn is a user experience designer and front end developer who enjoys creating beautiful and usable web and mobile experiences.

Bình luận (0)

 

Add Comment

Filtered HTML

  • Các địa chỉ web và email sẽ tự động được chuyển sang dạng liên kết.
  • Các thẻ HTML được chấp nhận: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Tự động ngắt dòng và đoạn văn.

Plain text

  • No HTML tags allowed.
  • Các địa chỉ web và email sẽ tự động được chuyển sang dạng liên kết.
  • Tự động ngắt dòng và đoạn văn.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Advertisement

 

jobsora

Dich vu khu trung tphcm

Dich vu diet chuot tphcm

Dich vu diet con trung

Quảng Cáo Bài Viết

 
How To Create an Ajax Autocomplete Textfield In Drupal 7

Cách tạo 1 Textfield Ajax Autocomplete trong Drupal 7

People are lazy by nature and love when something is done for them automatically.

On Drupal Performance: Testing with Apache Benchmark

Kiểm tra hiệu suất Drupal với Apache Benchmark

Sometimes in our lives, we all have pain, we all have sorrow. And sometimes we also have to launch Drupal sites into the wild blue yonder.

Phần 1: Hướng dẫn Data Migration từ HTML Pages vào Drupal 7

Phần 1: Hướng dẫn Data Migration từ HTML Pages vào Drupal 7

I recently was faced with a project where the client has a "database" of items that will be brought into the brand new Drupal 7 site that we are preparing for him.

Công ty diệt chuột T&C

 

Diet con trung