Thursday, August 6, 2015

Sidebar into Google Maps Android API

While not part of the sample project that I am building, had a need to explore this topic for work.

There not much to say other than it is easy to get going with Google Maps Android API: https://developers.google.com/maps/documentation/android/intro.

A couple of tricks:

  • Google Maps Android API requires Google Play Services which requires API 9 (I was originally setting a minimum of API 7); just need to up the minSdkVersion to 9 in the build.gradle file.
  • The preferred way of getting at location data also uses Google Play Services.  The example provided by Android: https://developer.android.com/training/location/retrieve-current.html is too sparse.  Rather, the following got me there: http://blog.teamtreehouse.com/beginners-guide-location-android
  • Learned that as of today (8/6/15) the system images (emulator) for Android 5.1.1 (API 22) ship with an older version of Google Play Services (6774470) but the Android 5.0.1 (API 21) ships with a newer one 7571470.   So, to use the emulator with the current shipping client (requires 7571000) one needs to use the Android 5.0.1 (API 21) version.

No comments:

Post a Comment