02-06-2013 07:46 AM
Hi,
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.
Thanks
Rakesh
02-06-2013 09:16 AM
02-06-2013 08:53 PM
Thanks for the info,I will check it.To retreive lat and long ,Whether stand alone GPS will fetch the location or do i require SIM to get the location?
02-06-2013 09:50 PM
02-13-2013 01:20 AM
02-13-2013 09:11 AM
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:03 PM
Is Location Services enabled in the OS Settings?
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.
04-19-2013 05:16 PM
Do you hold a wake lock when attempting to get updates when the screen is off?