1 / 25

Android Google Maps

Android Google Maps. 建國科技大學 資管系 饒瑞佶 2011/1. Google Maps. 取得 Google Map API. Step1: 先進入 JDK 目錄. Google Maps. 透過 keytool.exe 建立認證指紋 需要 debug_keystore 路徑. Google Maps. debug_keystore 路徑. Google Maps.

byron-ewing
Download Presentation

Android Google Maps

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. AndroidGoogle Maps 建國科技大學 資管系 饒瑞佶 2011/1

  2. Google Maps • 取得Google Map API Step1:先進入JDK目錄

  3. Google Maps • 透過keytool.exe建立認證指紋 • 需要debug_keystore路徑

  4. Google Maps • debug_keystore路徑

  5. Google Maps • 輸入keytool–list –alias androiddebugkey –keystore “C:\Documents and Settings\Administrator\.android\debug.keystore” –storepass android –keypass android

  6. Google Maps • 產生認證指紋

  7. Google Maps • 進入Google Map API Key申請頁面 • http://code.google.com/intl/zh-Tw/android/add-ons/google-apis/maps-api-signup.html 輸入認證指紋碼

  8. Google Maps • 進入Google Map API Key申請頁面 • http://code.google.com/intl/zh-Tw/android/add-ons/google-apis/maps-api-signup.html

  9. Google Maps • 產生出API金鑰 0O7bGO2vQxBc90bpYbJ8PnSjJapePPkrSGRvP3A <com.google.android.maps.MapViewandroid:layout_width="fill_parent" android:layout_height="fill_parent" android:apiKey="0O7bGO2vQxBc90bpYbJ8PnSjJapePPkrSGRvP3A" /> 加入main.xml

  10. Google Maps main.xml

  11. Google Maps • 建立新專案: HelloMaps 沒有Google APIs target

  12. Google Maps • 如果沒有Google APIs target • 請選擇Available packages進行安裝

  13. Google Maps • 安裝完Google APIs target畫面

  14. Google Maps • 建立新專案: HelloMaps

  15. 顯示Google Maps地圖 加入 改成MapActivity 加入

  16. Google Maps • AVD也要對應具備Google APIs功能

  17. Google Maps • 增加 <uses-permission android:name="android.permission.INTERNET" /> • 在 <application> 裡頭增加 <uses-library android:name="com.google.android.maps" /> 資訊

  18. Google Maps

  19. 不用註冊Google MapsAPI也可以使用Intent

  20. 利用Intent 玩Google Maps • 建立新專案: IntentMaps

  21. 顯示Google Maps地圖

  22. 利用Intent 玩Google Maps • AVD也要對應具備Google APIs功能

  23. 利用Intent 玩Google Maps • 增加 <uses-permission android:name="android.permission.INTERNET" />

  24. 利用Intent 玩Google Maps

  25. 更多Google Maps • 更多Google Maps

More Related