Set up GPS and location services on blackberry - blackberry

i need to get latitude and longitude using gps on blackberry. When i check in simulator, i got the default latitude 43 and longitude 80. When i check on device, i got latitude 0.0 and longitude 0.0.
I check on device, option-> Device ->Location setting.
Gps data source is Device GPS and location services turns to location on.
But till, latitude and longitude values are 0.0.
Is there any settings to enable the gps? Pls help..

It will be the problem of GPS lock. please check the gps lock is obtained.
thanks

Related

How can i understand if location services is using GPS or not to determine user's location in iOS?

Is there any way or method for getting the source of location if it is coming from GPS or from Wifi?
Thanks.
Imho there is no way how to decide if signal comes from GPS or WIFI or whatever (this handles CoreLocation framework) - but you can still "decide" depending on current accuracy - the horizontalAccuracy property and verticalAccuracy property in CLLocation object.

What location settings does Skobbler iOS SDK use for current location?

So we are using Skobbler iOS SDK and offline maps functionality for our iOS app and we were testing it while we were in Spain, and we were able to see our current location but as we moved around the current location didn't move with us.
What values does Skobbler use for the desiredAccuracy and distanceFilter and also does it use standard location updates of significant location updates? Is there a way to set these values ourselves?
If you would like to have the map follow your position you have to set:
mapView.settings.followUserPosition = YES;
For accuracy it's used kCLLocationAccuracyBest but you cannot change it at this time.
The distance filter is 1 for normal location updates and 500 for significant location updates.
You can choose to have normal location updates or significant location updates using startSignificantLocationUpdate/cancelSignificantLocationUpdate and startLocationUpdate/cancelLocationUpdate methods from SKPositionerService.

iOS CoreLocation: Is it possible to know if the location data is coming from GPS or from Wifi?

I was wondering if we can get the source type of the current location in iOS. I didn't find any reference nor in CLLocationManager neither in CLLocation.
I've found the same question here in SO, but for Android:
Is it possible to know my location came from gps or glonass?
Android. How to know if location detected is from GPS or Network provider
The second one has an answer that says if the accuracy is smaller than 30 meters, than it is using GPS. But I don't know if we really can assume that.

CLLocationManager Not getting Location Accuracy In Cellular Network (3G)

I am Having a problem In Location Accuracy Using Cellular Network.
Following are the My issues
Sometimes Location accuracy is very perfect in Cellular Networks(3G)
Sometimes Location Accuracy is Not getting perfectly Its one mile difference.
For WiFi Its working Very Perfectly.
Following are My code
locationManager = [[CLLocationManager alloc] init];
locationManager.delegate = self;
locationManager.desiredAccuracy = kCLLocationAccuracyBestForNavigation;
[locationManager startUpdatingLocation];
Please what is the problem for my code.
Cellular network location gives an approximate area were the phone existing. It is based on the service providers tower.So i recommend using gps location tracking so that you get the exact longitude and latitude of your phone.
Longitude and latitude can be used to find more details about the location like place,weather etc..
Please refer this
This is because you can't force the device the location trough satellite (3G or 4G)
You (the app) can only access the location the device gets (And if it have permission).
When you have highest accuracy kCLLocationAccuracyBestForNavigation it will try to get the most accuracy it can get (First GPS, then triangulation/network + aditional sensor data) (Not recommended, this is only for "navigation" it consumes too much energy and assumes it is plugged in).
For this please refer to the Core Location Constants Reference
If you are outdoors you may not have exact location at first, it may take some time to get the best location available to the phone.
Please reffer to the documentation of CLLocationManager desiredAccuracy
When requesting high-accuracy location data, the initial event
delivered by the location service may not have the accuracy you
requested. The location service delivers the initial event as quickly
as possible. It then continues to determine the location with the
accuracy you requested and delivers additional events, as necessary,
when that data is available.

Is it possible to get latitude and longitude when there is no data connection?

Is it possible to get longitude and latitude info while there is neither a cellular nor a WiFi connection?
An Apple person said on the dev forums: "All iOS devices with 3G radios have real, true, honest-to-goodness, satellite communicating GPS (this includes all iPhones except the first one, as well as all iPads with 3G)."
Which means that Core Location will return a Location object with latitude and longitude without accessing the internet over wifi or cell phone, because there is a GPS receiver onboard. Attempting to show a map with MapKit will need an internet connection to get the map tiles of course. But just getting the lat/long can be done.
iOS location API kind of isolates you from source of the location (GPS/3G/Wifi whatever). What you get is coordinates, accuracy, timestamp and others. As you initialize location API you might get old coordinates. You'll need to check the timestamp if they are too old to be useful for you. This can get you last known location which is useful. If there is no Wifi or 3G and you only depend on GPS, it won't work indoors most of the times!

Resources