Code example for WifiInfo

Methods: getSSID

0
	public boolean isConnected(){ 
		return mConnectivityManager.getNetworkInfo( ConnectivityManager.TYPE_WIFI ).isConnected();
	} 
	 
	public String getSSID( ) {
		return mWifiInfo.getSSID();
	} 
	 
	public int getNumberOfAddresses( ) { 
		return IP4Address.ntohl( ~mNetmask.toInteger() );
	} 
	 
	public IP4Address getStartAddress( ) { 
		return mBase;
	} 
	 
	public String getNetworkMasked( ) {
		int network = mBase.toInteger();
 
    	return ( network & 0xFF) + "." + (( network >> 8 ) & 0xFF) + "." + (( network >> 16 ) & 0xFF) + "." + (( network >> 24 ) & 0xFF);
	}