Android

Android Location Services

Google Maps v2 API

Sample Android v2 Google Maps API Code

Fused Location Provider

  • The Fused Location Provider is an optional alternative to the standard Android Location Service that automatically handles changes in provider status inside the application. The Fused Location Provider is part of Google Play Services, which includes the new Google Location Services APIs
  • Xamarin Android Location Services with both providers
  • The Fused Location provider works even with WiFi Disabled and with Celular data disabled.
  • In airplane mode, you can use Get Last Location

Obtraining Google Maps API Key

C:\Program Files (x86)\Java\jdk1.6.0_39\bin>keytool -list -v -keystore "C:\Users
\Admin\AppData\Local\Xamarin\Mono for Android\debug.keystore" -alias androiddebu
gkey -storepass android -keypass android

Components

Errors

major version 51 is newer than 50, the highest major version supported by this compiler

  • This happens when attempting to compile a Xamarin app when using Google Play Services
  • Fix: on [stack overflow](major version 51 is newer than 50, the highest major version supported by this compiler)
  • In a nut shell, the fix is:
  • 'Major version" = Java version
  • Java 7 = 51
  • Java 6 = 50
  • Install Java Development Kit for version 7
  • Set the JDK compilation preference.