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 but I can’t get any for a while.
LocationInfo.isLocationSourceAvailable(LocationInfo.GEOLOCATION_MODE_WLAN);
Returns false.
I just noticed that GEOLOCATION_MODE_WLAN is quiet a new thing in Blog: Please refer this blog-post
I finally got it going by setting a
maxAgewhen setting theLocationListener(was -1 => default before):I can reproduce this, but is does not make any sense to me… And it does not work everytime. Whatever I give up on this…
It might also not be supported by your carrier.