03-12-2013 01:40 PM
I am porting an Android app to the Z10. Most things are working, except location updates. My Android app requests COARSE_LOCATION only which uses a network location provider (Wifi based rather than GPS).
First problem I see is that when I look at the app permissions, the Z10 says my app has GPS location permission, but not regular (network) location permission. This is back to front, as I am not requesting GPS permission.
This may be the cause of the second problem. The app itself cannot get any network location updates from the OS. I have a LocationListener registered, but it never receives an onLocationChanged call. When I query the LocationManager directly for a last known position, I also get nothing. Perhaps because the app has not been granted the right permission?
Any help would be appreciated.
04-15-2013 02:51 PM