02-06-2013 07:46 AM
I am trying the find the GPS location.I am getting lat and long as full,
Basically i have qns regarding GPS
1)First of all Is there any option to Check GPS is enablered or not,If so where can i find them?
2)While installing the application ,it does not ask permissions regarding GPS location
I tried added something like
<rimermissions> <rimermit>read_geolocation</rimermit> </rimermissions>
But there was not much of change with this code.
Did anyone tried using GPS.
02-06-2013 09:16 AM
02-06-2013 09:50 PM
04-19-2013 09:41 AM
I have the same problem (on an actual Z10 device with a SIM card) :
TelephonyManager.getCellLocation() returns null
LocationManager.getLastKnownLocation(provider) returns null for all avaiable providers
Any listner I register with LocationManager.requestLocationUpdates) is never called
Any idea ?
Any input from someone from Blackberry or is it useless to hope for a geolocation feature on Android apps ported on Blackberry 10 ?
04-19-2013 05:14 PM
Note that on the Z10 device, I have discovered that if the Screen is Off (via power button click or timeout) then the Activity will not receive location updates (I've opened a separate thread on this issue).
If the screen is on and Activity has registered for Location updates then it definitely will get them.
To register for location updates:
LocationManager lm = (LocationManager)getSystemService(Context.LOCATION_SERVICE);
lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0F, this);
This works fine on actual Z10 device (and simulator), except as noted above if power button is clicked or screen times out.