Creating WPA2 PSK Access Point in Android Programmatically

后端 未结 4 1315
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-03 16:09

I want to create Access Point in android programmatically with the following configurations. AccessPointName :SomeName Security:WPA2 PSK Password

4条回答
  •  再見小時候
    2021-02-03 16:54

    You can use accesspoint:

    WifiApControl apControl = WifiApControl.getInstance(context);
    
    apControl.setEnabled(wifiConfiguration, true);
    

    You just need to populate the WifiConfiguartion object with your WPA2 PSK parameters.

提交回复
热议问题