get WIFI BSSID - Android Wifi

Android examples for Wifi:Wifi SSID

Description

get WIFI BSSID

Demo Code


//package com.java2s;

import android.net.wifi.WifiInfo;
import android.net.wifi.WifiManager;

public class Main {
    private static WifiManager mWifiManager;

    public static String getBSSID() {
        WifiInfo mWifiInfo = mWifiManager.getConnectionInfo();
        return (mWifiInfo == null) ? "NULL" : mWifiInfo.getBSSID();
    }/*from w w w  .j a  v a2 s.  c  om*/
}

Related Tutorials