2011年10月31日月曜日

Google Maps API Key 取得

Google Maps API Key 取得

必要なもの
・Googleアカウント
  Googleから配布のため必要
・自前の証明書
  アプリケーション配布のための証明書
  テスト用であればデバッグ版の証明書

デバック証明書の場所
Windows XP  C:\Documents and Settings\【ユーザ名】\LocalSettings\Application Data\Android\debug.keystore

Windows Vista  C:\Users\【ユーザ名】\AppData\Local\Android\debug.keystore

Windows 7  C:\Users\【ユーザ名】\.android\debug.keystore

Mac  ~/.android/debug.keystore

証明書のフィンガープリント(MD5)の取得方法
keytoolコマンドは、JDKの「bin」フォルダにある

C:> cd C:\Program Files\Java\jre6\bin
C:>keytool -list -keystore C:\Users\【ユーザ名】\.android\debug.keystore

jre7から
「-v」オプションを追加して実行するとMD5の値が取得できます。
c:\Program Files\Java\jre7\bin>keytool -v  -list -keystore  debug.keystore


Android Maps Key取得
 Googleアカウントでのログイン
 Android Maps API Keyへアクセス



□をチェックする
■I have read and agree with the terms and conditions

  Generate API Keyを押下する

「My certificate's MD5 fingerprint:」横のテキストボックスにキーが表示されます。