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: 17
Registered: ‎07-17-2009
My Device: Not Specified

how to guess a working wifi connection

well i understand that i can guess a coverageinfo for wifi, but how can i really tell if the WLAN is having a internet connection?, any help on this will be much appriciated
Highlighted
Developer
Posts: 905
Registered: ‎02-07-2009
My Device: BlackBerry Torch 9800
My Carrier: Globe Telecom

Re: how to guess a working wifi connection

use this one:

  if (WLANInfo.getWLANState() == WLANInfo.WLAN_STATE_CONNECTED) {

            System.out.println("Coverage Status: Online");

  } 

 

but WLANInfo is only available in 4.3 and up