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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 57
Registered: ‎04-07-2009
My Device: 8300
Accepted Solution

GPS Demo

GPS Demo project provided with JDE;

 

- Is there any analysis or discussion about this, so that I can understand clearly how the code works?

- How to test this in simulator?

Highlighted
Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: GPS Demo

[ Edited ]

Check this Developer Doc.

 

http://na.blackberry.com/eng/deliverables/8105/BlackBerry_Java_Development_Environment-4.7.0-US.pdf

 

 

In your Simulator, Select Simulate -> GPS Location.

 

 

Message Edited by BBDeveloper on 13-07-2009 11:21 AM

Use Search. "Accept Solution" If the problem is resolved.
Developer
Posts: 57
Registered: ‎04-07-2009
My Device: 8300

Re: GPS Demo

Thanks, But after Exicuting this line

_locationProvider = LocationProvider.getInstance(null);

 

I got _locationProvider == null, how to resolve this problem?
Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: GPS Demo

In you Simulator, Go to Options ->Advnaced Options -> GPS and Turn on the GPS.

Use Search. "Accept Solution" If the problem is resolved.
Developer
Posts: 57
Registered: ‎04-07-2009
My Device: 8300

Re: GPS Demo

[ Edited ]

In Options ->Advnaced Options ->, I don't find GPS.

 

I am using simulator 4.2.2.114

Message Edited by arif on 07-13-2009 02:46 AM
Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: GPS Demo

Use any of the Latest Simulator.

 

Which Simulator you are trying on? 


Use Search. "Accept Solution" If the problem is resolved.
Developer
Posts: 57
Registered: ‎04-07-2009
My Device: 8300

Re: GPS Demo

4.2.2.114
Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: GPS Demo

[ Edited ]
Not JDE.  Simulator. Is it 8800 or 8300.
Message Edited by BBDeveloper on 13-07-2009 12:36 PM

Use Search. "Accept Solution" If the problem is resolved.
Developer
Posts: 57
Registered: ‎04-07-2009
My Device: 8300

Re: GPS Demo

8300
Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: GPS Demo

[ Edited ]

Can you try with 8800?

 

 

Message Edited by BBDeveloper on 13-07-2009 12:52 PM

Use Search. "Accept Solution" If the problem is resolved.