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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Visitor
letsdev-cschuff
Posts: 1
Registered: ‎11-24-2011
My Carrier: o2

Reasons why GEOLOCATION_MODE_WLAN might not be available?

Why could GEOLOCATION_MODE_WLAN not be available?

 

I am using a BlackBerry Bold 9780. The wifi on my device is turned on. Here are 5-10 wifis around and I am even connected to one. I sometimes got a Wlan-fix before but I can't get any for a while.

 

LocationInfo.isLocationSourceAvailable(LocationInfo.GEOLOCATION_MODE_WLAN);

 

Says false...

Please use plain text.
BlackBerry Development Advisor
shaque
Posts: 75
Registered: ‎07-14-2008

Re: Reasons why GEOLOCATION_MODE_WLAN might not be available?

Hello,

LocationInfo.isLocationSourceAvailable(LocationInfo.GEOLOCATION_MODE_WLAN);

 

will return true only if the service record for WLAN Geolocation is present on the device. 

 

Sicne you mentioned that you somtimes got WLAN-fix before on the same device, how did you confirm that it was a wlan fix?

 

Have you changed your carrier recently? That can wipe your old service records and get new one and the new carrier may not have RIM's WLAN geolocation enabled. However, most (if not all) of the carriers should have it enabled.

 

Cheers.

Shadid

Please use plain text.