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
Highlighted
Contributor
Posts: 16
Registered: ‎03-10-2010
My Device: Blackberry 8350i
My Carrier: Nextel

GPS and Reference coordinates!

Hello!

 

I am developing a Java application and I need to know the coordinates of the GPS and the coordinates Reference, however i have been unable for doing it, because the device I am using is a BlackBerry 8350i. Please, could somebody help me? I know for doing it in a Blackberry bold 9000, we can do it in the following way:

 

Criteria crit = new Criteria();

crit.setVerticalAccuracy(Criteria.NO_REQUIREMENT);

crit.setHorizontalAccuracy(Criteria.NO_REQUIREMENT);

crit.setCostAllowed(false);

crit.setPreferredPowerConsumption(Criteria.NO_REQUIREMENT);

 

But for the Blackberry 8350i, the process doesn't work, please help me!

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

Re: GPS and Reference coordinates!

What BlackBerry device software version are you testing on?  You can find this under Options, About on the BlackBerry Smartphone.  Can you elaborate on what is not working?  Is any error or exception thrown?  If so, what line of code triggers it?

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