Starting from Android 8 there is a public API for starting a local hotspot.
Notes:
- The hotspot doesn't allow internet connection.
- The password and SSID are chosen randomly and cannot be changed.
- Debug it with USB debug mode as it will break B4A-Bridge connection.
Updates:
- Project was updated with changes required to support Android 13 devices with targetSdkVersion >= 33.
There is a new NEARBY_WIFI_DEVICES permission on Android 13+.
The location permission is required on Android 12-. See how it is declared in the manifest editor. Do note that if your app needs the location permission for other purposes then remove the snippet that limits the max version of that permission.
Notes:
- The hotspot doesn't allow internet connection.
- The password and SSID are chosen randomly and cannot be changed.
- Debug it with USB debug mode as it will break B4A-Bridge connection.
Updates:
- Project was updated with changes required to support Android 13 devices with targetSdkVersion >= 33.
There is a new NEARBY_WIFI_DEVICES permission on Android 13+.
The location permission is required on Android 12-. See how it is declared in the manifest editor. Do note that if your app needs the location permission for other purposes then remove the snippet that limits the max version of that permission.
Attachments
Last edited: