I want to create Access Point in android programmatically with the following configurations. AccessPointName :SomeName Security:WPA2 PSK Password
AccessPointName :SomeName
Security:WPA2 PSK
Password
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.