In addition, getLastLocation() is always null.

If I don't use High Accuracy, it does not crash, but I also never receive 
updates.

Why are *fictional* articles being posted to developer.android.com.

Nathan

On Friday, November 28, 2014 10:04:40 AM UTC-8, Nathan wrote:
>
> I was glad to find this article and especially liked the promise of it. 
>
>
> https://developer.android.com/training/articles/wear-location-detection.html
>
> "However, when you request location data in a wearable app, you don't have 
> to worry about where the location data originates; the system retrieves the 
> location updates using the most power-efficient method."
>
> So I've implemented it.
>
> Only one problem.
>
> It don't work.
>
> A colleague claims to have received location in an emulator with some 
> effort.
>
> Nothing happens in a Gear Live. I've set breakpoints.
> RequestLocationUpdates is called.
> onLocationChanged is never called. Ever.
> In fact, it appears that the ResultCallBack passed in 
> requestLocationUpdates is never called.
>
> The only thing that does happen is if I request high accuracy is it 
> crashes 
>     java.lang.SecurityException: Client must have ACCESS_FINE_LOCATION 
> permission to request PRIORITY_HIGH_ACCURACY locations.
>
> Even though    
>  <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
> is clearly in the manifest after manifest tag and before application tag
>
> Nathan
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to