easy to use wifi-ap
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.15875641474:hzc.wifi.ap:1.0.4'
}
- HzcWifiAPService
Listance the WLAN status and operation AP/WLAN
HzcWifiAPService.do*
HzcWifiAPService.set*
HzcWifiAPService.is*
- more .. see the sourse or desc
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.OVERRIDE_WIFI_CONFIG" />
HzcWifiAPService apService = new HzcWifiAPService(activity)
apService.doRegisterListance();
apService.setOn*
call api to do some think
part1. AP About
apService.doCreateWifiAp(name.pwd)
apService.doCloseWifiAp()
part2. WLAN About
apService.setWifiEnable(boolean)