Mobile Location Notes
Android
Android Location Services
- Android Cloud Connectivity - How to upload data to the cloud without draining the devices battery
- Get Current Device Location
- Reverse Geocode a Location
- Get a gps location via a service
- What's new in Google Play Service - Related to GPS
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
- How to obtain a Google Maps API Key
- Getting the details (in Windows):
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
- Xamarin Component for Google Play Service Android 2.2 (API level 8)
- Xamarin Component for Google Play Service Android 2.3 (API level 10)
- Xamarin Component for Google Play Service Android 2.0 (API 19)
- So generally use ICS version
- Clean up after downloading Xamarin components, they bring down sample code and source code. Don't want to bload GIT with this stuff.
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.