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
gopi_riar
Posts: 54
Registered: ‎10-05-2012
My Device: blackberry curve 9300
My Carrier: Vodafone

cellsite mode issues in getting location...??

Hello..

i m trying to get the location from cellsite mode ... i have been using gps modes on blackberry smartphone 9300 (3G,wifi) v 6.0..

when i get location using unassisted mode .. the gps mode is 2 and when i m using cellsite mode it also replies the same ...

how can i differentiate between two??????

 

 

Please use plain text.
Developer
gopi_riar
Posts: 54
Registered: ‎10-05-2012
My Device: blackberry curve 9300
My Carrier: Vodafone

Re: cellsite mode issues in getting location...??

and i m using

BlackBerryCriteria myCriteria = new BlackBerryCriteria(LocationInfo.GEOLOCATION_MODE_CELL);

and i have also tried

BlackBerryCriteria myCriteria = new BlackBerryCriteria(GPSInfo.GPS_MODE_CELLSITE);

both makes no difference ..

whenever i m using this it provides me the gps mode 2 .. which is  unassisted gps mode ... please someone help me??

 

Please use plain text.
Super Contributor
bh1r1th
Posts: 273
Registered: ‎11-23-2010
My Device: 9800 torch
My Carrier: Software Programmer

Re: cellsite mode issues in getting location...??

Please check this link

 

 

http://supportforums.blackberry.com/t5/Java-Development/Location-APIs-Start-to-finish/ta-p/571949

 

Cellsite code won't work on simulator.

 

Please use plain text.
Developer
gopi_riar
Posts: 54
Registered: ‎10-05-2012
My Device: blackberry curve 9300
My Carrier: Vodafone

Re: cellsite mode issues in getting location...??

Gsm supports cellsite .. i have checked that .. but it doesn't work

Please use plain text.
Super Contributor
bh1r1th
Posts: 273
Registered: ‎11-23-2010
My Device: 9800 torch
My Carrier: Software Programmer

Re: cellsite mode issues in getting location...??

r u testing in simulator or in real device.

 

the cellsite code works only on device with an active sim otherwise it throughts null pointer exception.

 

 

Please use plain text.
Developer
gopi_riar
Posts: 54
Registered: ‎10-05-2012
My Device: blackberry curve 9300
My Carrier: Vodafone

Re: cellsite mode issues in getting location...??

actually i m testing it on both ... on blackberry 9380 simulator and blackberry smartphone 9300 device

Please use plain text.
Developer
gopi_riar
Posts: 54
Registered: ‎10-05-2012
My Device: blackberry curve 9300
My Carrier: Vodafone

Re: cellsite mode issues in getting location...??

[ Edited ]

on device ........When i am setting GPS location on then through cellsite it shows me same values that i m getting from Gps Autonomous mode and when i set the GPS location off it does nothing... no response

Please use plain text.