See the App Inventor Extensions document about how to use an App Inventor Extension.
For questions about this extension or bug reports please start a new thread in the App Inventor Extensions forum. Thank you.
For feature requests please contact me by email. To be a sponsor of a new method already is possible starting from only 10 USD! With your contribution you will help the complete App Inventor community. Thank you.
Nov 22th, 2016: Initial Version released
Dec 3rd, 2017: CreateHotspot method added
Required permission: android.permission.CHANGE_NETWORK_STATE, android.permission.CHANGE_WIFI_STATE, android.permission.ACCESS_WIFI_STATE, android.permission.WRITE_SETTINGS
Thank you OSLO and Nick for being the sponsors of this extension.
Check, whether wifi hotspot is enabled or not. Returns true or false.
Toggle wifi hotspot on or off. Returns true in case of success, else false.
Create wifi hotspot. Returns true in case of success, else false. Notes:
Q: I tried the example app on Huawei P10 and One Plus 3T, but it doesn't work with both phones (Android 8)?
A: I just tested on Nexus 5x running on Android 8.1 and can confirm, that it does not work there. We now have to ask for permission to be able to write settings, see also here. Unfortunately currently in the extension we are not able to do this, because the maximum API level we can use to build extensions is API Level 22 = Android 5.1.1. But I think, probably later this year we will be able to do this...
Tested successfully on Samsung Galaxy A5 (2017) running Android 7.0.
Developing and maintaining snippets, tutorials and extensions for App Inventor takes a lot of time.
I hope it saved some of your time. If yes, then you might consider to donate a small amount!
or donate some mBTC to Address:
Thank you! Taifun
This work by Pura Vida Apps is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License
with attribution (name=Pura Vida Apps and link to the source site) required.