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: 19
Registered: ‎08-11-2010
My Device: 8520
My Carrier: Orange France

Urgent: Blackberry Curve 8520 geolocation capabilities

Hello,


We are testing the geolocation capabilities on the BB curve 8520, Orange France network,


We tried the first solution:


BlackBerryCriteria bbCriteria = new BlackBerryCriteria();

bbCriteria.setMode(GPSInfo.GPS_MODE_CELLSITE);

BlackBerryLocationProvider bbProvider = (BlackBerryLocationProvider)

LocationProvider.getInstance(bbCriteria);

BlackBerryLocation bbLocation = bbProvider.getLocation(120); 

and the second solution:

Criteria criteria = new Criteria();

criteria.setCostAllowed(true);criteria.setHorizontalAccuracy(Criteria.NO_REQUIREMENT);

criteria.setVerticalAccuracy(Criteria.NO_REQUIREMENT);

criteria.setPreferredPowerConsumption(Criteria.POWER_USAGE_LOW);

LocationProvider provider = LocationProvider.getInstance(criteria);

Location location = provider.getLocation(100);

Both of the solutions give us a null location because the getState() method of the location provider returns "OUT_OF_SERVICE.


Here is how I got the state:

 

if(provider.getState()==LocationProvider.AVAILABLE)

System.out.println("Smiley Happy LocationProvider is AVAILABLE");


else if(provider.getState()==LocationProvider.TEMPORARILY_UNAVAILABLE)

System.out.println("Smiley Sad LocationProvider is TEMPORARILY_UNAVAILABLE");


else if(provider.getState()==LocationProvider.OUT_OF_SERVICE)

System.out.println("Smiley Sad LocationProvider is OUT_OF_SERVICE");


Does the BB curve 8520 really support cell site geolocation?

Thanks for your kind help.

Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: Urgent: Blackberry Curve 8520 geolocation capabilities

[ Edited ]

The 8520 does not even have GPS, does it?

 

Here is another thread on the same device, same issue (posted earlier today).

 

http://supportforums.blackberry.com/t5/Java-Development/Cellsite-LBS-without-on-board-GPS/td-p/50572...

 

Contributor
Posts: 19
Registered: ‎08-11-2010
My Device: 8520
My Carrier: Orange France

Re: Urgent: Blackberry Curve 8520 geolocation capabilities

No it doesn't have GPS. That's why I used the cell site to get the location (see the code). 

 

In the devblog of Blackberry, http://devblog.blackberry.com/2010/07/blackberry-geolocation-service/

 

it seems that they should support 8250 by using cell site. 

 

Can someone confirm it?

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Urgent: Blackberry Curve 8520 geolocation capabilities

It should support it, assuming you have OS 5.0 installed, and, it  says in the article:

 

"users must be signed up with a carrier that has enabled these capabilities"

Contributor
Posts: 19
Registered: ‎08-11-2010
My Device: 8520
My Carrier: Orange France

Re: Urgent: Blackberry Curve 8520 geolocation capabilities

Yes, I have OS 5 and they even confirmed in one of the comments on the devblog that in the network of Orange France the cell site location is supported. 

 

I tested with Bold 9000, that works when I disactivate the GPS. I got my location correctly by cell site.

 

But the same code doesn't work with curve 8520. My application will be meaningless if I cannot get longitude and latitude. Thanks for your help.