trigger Wifi Scan - Android Phone

Android examples for Phone:wifi

Description

trigger Wifi Scan

Demo Code


//package com.java2s;
import android.content.Context;

import android.net.wifi.WifiManager;

public class Main {
    public static void triggerWifiScan(Context context) {
        WifiManager wifi = (WifiManager) context
                .getSystemService(Context.WIFI_SERVICE);
        wifi.startScan();/*from   ww w. j  a v a 2  s . c  o  m*/
    }
}

Related Tutorials