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
Posts: 67
Registered: ‎01-13-2009
My Device: Not Specified
Accepted Solution

Limitations Before Developing for GPS

Hi all

I would just like to quickly ask what kind of limitations I am looking at for being able to write applications that will use or mimic GPS and Map functionality. 

 

I have a Blackberry 8220 for personal use (which I am assuming has GPS as it is in the menu under advanced options) which I use with the email data package but no internet or browser capability.  I have done some reading into Google maps for blackberry and triangulating position from cell towers (mostly in the blackberry development guides and other forums)  but it seems most of what I find is talking about BES or BIS to some extent.  So I would to find out what kind of limits I am looking at in GPS when I don't have browser access.

 

Thanks.

Developer
Posts: 17,012
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Limitations Before Developing for GPS

gps is not reliant on any data connection, it is a satellite client service.
google maps on the other hand needs a server connection to provide map material.

without a data connection you will only be able to save gps data locally etc

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 67
Registered: ‎01-13-2009
My Device: Not Specified

Re: Limitations Before Developing for GPS

Hey, thanks for the reply,

How do you obtain the position/gps data.  The only available source that I can see is from a computer that I am connected to via Bluetooth.  And this doesn't work (I didn't realistically expect my computer to be a valid source of gps data).  I am just guessing that in order to get GPS data I would have to contact my carrier to get them to activate whatever it is that would allow me to receive this position data...  Any further thoughts?

Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: Limitations Before Developing for GPS

Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: Limitations Before Developing for GPS

Developer
Posts: 67
Registered: ‎01-13-2009
My Device: Not Specified

Re: Limitations Before Developing for GPS

Thanks for the links, the pdf I have already been using.

 

import com.rim.samples.device.gpsdemo.GPSDemo.WayPoint;

 

Would you know why this import statment fails in the GPSDemo?  I have made no changes to the code, but it won't compile this line. 

Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: Limitations Before Developing for GPS

It is an import statement that imports WayPoint class declared inside of GPSDemo class.

 

What error message did you get ?

Developer
Posts: 67
Registered: ‎01-13-2009
My Device: Not Specified

Re: Limitations Before Developing for GPS

"The import ________ cannot be resolved"

import com.rim.samples.device.gpsdemo.GPSDemo.WayPoint;

import GPS_Demo.device.GPSDemo.WayPoint;

import GPS_Demo.device;

import GPS_Demo.*;

 

I have tried each of the above plus a few others. 

 

The first one came from the Blackberry JDE.

The rest came from eclipse.

 

I prefer to work in Eclipse with the Blackberry Plugin.  And so far I have never had any problems with this.  But neither environment will compile this import correctly. 

 

My current Hierarchy is as follows:

-Workspace

-Project

-Package

-Source Files

 

- Workspace

-GPS_Demo

-device

    -GPSDemo

    -PointScreen

 

If anything is unclear let me know. 

Thanks

Developer
Posts: 170
Registered: ‎01-17-2009
My Device: 9630

Re: Limitations Before Developing for GPS

Make sure that in GPSDemo the inner class of WayPoint is intact and public... If you didn't touch it it should be though
Developer
Posts: 67
Registered: ‎01-13-2009
My Device: Not Specified

Re: Limitations Before Developing for GPS

The class as seen in the demo is defined as static,  by changing it to public the problem was fixed. 

 

Now for the ultimate solution.

I will not be able to obtain any gps data because I am not paying the $10 per month fee to my carrier to enable the GPS service.  And as I am not paying the $30 per month fee for wireless internet access I can't really use the Google maps application. 

 

If you have any information that contradicts what I have mentioned here please let me know. 

 

Thanks for you help today.