12-05-2008 05:12 AM
Trying to get a fix using the CellSite method, i.e:
Criteria mycriteria = new Criteria();
_locationProviderCellFix = LocationProvider.getInstance(mycriteria);
Location myLoc = _locationProviderCellFix.getLocation(-1); //Single Fix
longitude = myLoc.getQualifiedCoordinates().getLongitude();
latitude = myLoc.getQualifiedCoordinates().getLatitude();
However _locationProviderCellFix is returning a Null object, my device carrier is Vodofone UK, who has confirmed that they do support this. Can anyone shed some light on this.
Also since CellSite does not use the GPS chip, should this work on a device without GPS, as when I switch GPS off, nothing works.
Thanks in Advance
12-05-2008 06:50 AM
I can confirm that I too see this. My code, which was compiled on JDE 4.2.1 and is running on a Vodafone UK Bold, is as follows:
Criteria mycriteria = new Criteria(); mycriteria.setHorizontalAccuracy(Criteria.NO_REQUI
REMENT); mycriteria.setVerticalAccuracy(Criteria.NO_REQUIRE MENT); mycriteria.setCostAllowed(true); mycriteria.setPreferredPowerConsumption(Criteria.P OWER_USAGE_LOW); mycriteria.setCostAllowed(true); mycriteria.setAltitudeRequired(false); mycriteria.setPreferredResponseTime(Criteria.NO_RE QUIREMENT); mycriteria.setSpeedAndCourseRequired(false); _locationProvider = LocationProvider.getInstance(mycriteria); // At this point locationProvider is null // Note that I tested using the same settings as the original poster and also go null. // I then added the other criteria in the hope that it might help but it did not.
12-08-2008 03:18 PM
Please note that the BlackBerry Bold supports autonomous mode only. You can verify this here:
What Is - The BlackBerry smartphone models and their corresponding GPS capabilities
Article Number: DB-00615
This chart lists the mode chosen based on the supplied criteria.
How To - Define criteria to retrieve a GPS fix
Article Number: DB-00461
04-15-2009 08:10 PM
04-15-2009 10:04 PM
My understanding is that cellsite is CDMA only and works only with the blessling of the carrier. It works fine for me on Sprint and is spectacular. It does not work for me on Verizon, but I haven't tried to figure out why. As for GPS,it is an inherently hard problem. GPS transmitters are very far away and transmit slowly and weakly on a wavelength that does not propagate through walls very well. The use case was not phones inside buildings but missiles flying in space...
04-15-2009 10:22 PM
Check out this link...
Using the cellid and lac, you should be able to get lat/lon from Google.
04-24-2009 03:00 PM
If this is true, "Please note that the BlackBerry Bold supports autonomous mode only." how are we supposed to grab GPS location quickly (and indoors) on the Bold? Even if the user is outside, if it takes 3+ min to get the GPS location, the app will be useless!
This is where the GPS Extended Ephemeris support comes into play, which can allow a fix to be achieved much faster (10-20 second range is normal). It allows the device to narrow down its search for satellites that should be visible in its area.
Quote from the link below:
"Note: The BlackBerry® Infrastructure does not store the locations of BlackBerry smartphones. When the BlackBerry smartphone sends the identity of the wireless service provider with which it is registered to the BlackBerry Infrastructure, the BlackBerry Infrastructure retrieves the ephemeris data for each GPS satellite signal on the wireless network and sends it to the BlackBerry smartphone. The GPS receiver on the BlackBerry smartphone then knows the location of each GPS satellite in the wireless coverage area. The BlackBerry smartphone uses this data to calculate its own location, but the BlackBerry smartphone does not report its location to the BlackBerry Infrastructure."
04-27-2009 10:29 PM
maybe I missed something, but how do I use this feature? Can you tell me what classes/functions can be used to grab the GPS location in the 10-20 sec range? Code samples would be great as always.
05-07-2009 01:19 PM - edited 05-07-2009 01:21 PM
There isn't anything you need to do within your application to take advantage of this. It will be used whenever possible when you are requesting a fix in autonomous mode. Typically as long as a user has been connected to the wireless network this should work. It may not be available if a user has just turned on their BlackBerry handheld in a new location (i.e. getting off of a plane and turning their handheld on).
This feature requires BlackBerry handheld software version 4.2.1 or higher.
05-08-2009 06:35 PM
the device I am using to test has os version 4.6.x.x and even after it was turned on for a long time, it takes upwards of 3 minutes to get a GPS fix.
Can you recommend things I can try to speed this up? Any code snippets you can share?