久々にMap APIキーを取ろうとしたら完全に忘れていたので記録。 GoogleAPIコンソールからも作成できるが、Android Studioから作ったほうが楽 前提 Googleアカウントがありブラウザでログイン済み Android Studioインストール済み 手順 Android StudioでMapsActivityを作成 APIキー作成のURLに遷移 GoogleAPIコンソールでAPIキーを作成 Android Studioでキーを貼り付け 1.Android StudioでMapsActivityを作成 MapsActivityを作成する理由 Android StudioでMapsActivityを作成することで、APIキーを簡単に作成するURLが自動生成される。 ではさっそく作成していく Google Maps Activity を選択 そのままFinishを押す goo
Google Maps Android API v2でとりあえず地図が表示できるところまで試したので、(主に自分用の) メモとして作業手順を書いておきます。 参考にした情報 Getting Started - Google Maps Android API — Google Developers 【Android】Google Maps Android API についての備忘録 - Qiita Google Maps Android API v2 を AndroidStudio で使ってみた | イントフロート スタッフブログ 前提バージョン Windows 7 Android Studio 1.2 Android 5.1 SDK (API 22) AVD KitKat x86 Google APIs 1. Android Studio上でプロジェクト作成 ここでは以下のように入力。 Ap
現在のGoogle Maps Android API V2ではLocationを使って標高(Altitude)を取得しようとしても、何故か0.0の値しか返ってきません。 なので、標高はHttpリクエストを使って、GoogleのElevation APIから取得します。 現在位置の取得には、端末のGPS機能を使います。 Eclipseの新規プロジェクトを作成する場合、Google-play-service_libを使います。 Google-play-service_libの使い方やMapsのAPIキー取得についてはこのページ参照 現在位置の取得の場合、上のページと異なるコードは以下の2つ。 【activity_main.xml】 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:t
「Google Maps Android API V2を使ってみる」では、Google Mapsの表示をLayoutのactive_main.xmlに記述 していましたが、今回地図の表示はMainActivity.javaにフルコードで記述してみました。 また、本番用にLegal Notices(免責事項)の表示用のコードも追加。 初期位置以外に、現在地表示の機能もありますので、初期位置に復帰するコードもつけておきました。 MainActivityのコードは、位置を指定して表示する場合と、現在位置を取得して表示する場合の2つを分けています。 使い方 Google Maps Android API V2を使ってみる では、5つほどのステップをふんでいました。 1:Maps API SDKのインストール(Google Play servicesのライブラリをEclipseにインポート) 2:G
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く