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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
skynetchris
Posts: 39
Registered: ‎07-18-2008

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.

 

Please use plain text.
Administrator
MSohm
Posts: 12,957
Registered: ‎07-09-2008
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

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.
Found a bug? Report it using the Issue Tracker
Please use plain text.