Android/JAVA - WIFI On/Off

2014. 4. 5. 00:04Programing/Android / Java

<Code>
    private WifiManager mWifiManager;

    mWifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE);
    mWifiManager.setWifiEnabled(true);


<Manifest>
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />