Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Posts: 39
Registered: ‎07-18-2008
My Device: Not Specified

Criteria ignored?

I was just playing around with a new method of getting GPS positions.


Criteria c = new Criteria(); c.setHorizontalAccuracy(5); c.setVerticalAccuracy(5); provider = LocationProvider.getInstance(c); Location loc = provider.getLocation(10000); return loc;


The problem being that the positions returned have an accuracy well outside of 5 meters:





28.0 14.5


31.0 16.0


Is the criteria being ignored, or is it a 'guideline' that the location provider tries to follow but will return whatever it can?





BlackBerry Development Advisor
Posts: 15,760
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Criteria ignored?

The following chart outlines the modes that can be used based on the criteria setting.


How To - Define criteria to retrieve a GPS fix
Article Number: DB-00461



However, note that depending on conditions and mode(s) available, the BlackBerry may not be able to determine location within 5 meters.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker