Search code examples
wear-os

Fetching Location from Android Wear LG Urbane 2nd Edition


I am trying to write wear app. I see that if the phone is not synced with watch through Android Wear app (Eventhough the watch is connected with wifi after disconnecting from Android wear app in phone), Maps app does not pick up the current location.

  1. LocationUpdates are NOT fetched when tried as standalone app in both the ways. Below is the code.

LocationServices.FusedLocationApi .requestLocationUpdates(mGoogleApiClient,locationRequest,this);

            LocationServices.requestLocationUpdates(LocationManager.GPS_PROVIDER,0,0,this);

But the above code works perfectly fine with Mobile app.

I am using LG Urbane 2nd edition.

Anyone please help me with this.. LG Urbane 2nd edition says it has GPS then why I am not able to fetch the location details when NOT Synced with phone.

UPDATE:

I found from the following sites that Android wear uses the GPS provider from the phone to get the location updates. Only Sony Smartwatch 3 can fetch the Location updates directly from watch. Is it still the same?

http://www.computerworld.com/article/2919013/android/android-wear-on-wi-fi-using-a-smartwatch-without-a-phone-nearby.html

http://android-developers.blogspot.com.au/2014/10/gps-on-android-wear-devices.html


Solution

  • Are you sure the watch is getting GPS signal? Use an app to test it, or some watches you can test gps in the Dev options, like the sw3.