Welcome!

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

Reply
Developer
skynetchris
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:

 

 

HA VA

 

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?

 

Cheers,

Chris.

 

BlackBerry Development Advisor
MSohm
Posts: 14,753
Registered: ‎07-09-2008
My Device: BlackBerry Passport

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

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800703/How_To_...

 

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