App Inventor Extensions


Hotspot Extension (DEPRECATED)

It has been reported here, that after the App Inventor update as of April 2020 this extension does not work anymore. The extension has been deprecated therefore.

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 community. 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

Description

Hotspot extension.
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.

The extension works only for devices using Android version 7 or below. Starting from Android 8 only apps, which are defined as system apps are able to create a hotspot.

Methods


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.

Notes:

  1. You will have to build the app to be able to test this method, because the companion app does not offer the required permissions.
  2. After toggling the hotspot, it might take a few seconds, before the hotspsot changes its state.
  3. On tablets without mobile internet this method also will return true as result.


Create wifi hotspot. Returns true in case of success, else false. Notes:

  1. You will have to build the app to be able to test this method, because the companion app does not offer the required permissions.
  2. After toggling the hotspot, it might take a few seconds, before the hotspsot changes its state.
  3. On tablets without mobile internet this method also will return true as result.
  4. This method works only for devices running Android 7 or below. Starting from Android 8 only apps, which are defined as system apps are able to create a hotspot, see also this Stackoverflow answer.

Example App: Hotspot Test

Test

Tested successfully on Samsung Galaxy A5 (2017) running Android 7.0.

For questions about App Inventor,
please ask in the App Inventor community.Thank you.

Terms and Conditions

Download


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!

Donation amount:

or donate some mBTC to Bitcoin Address:
1Jd8kXLHu2Vkuhi15TWHiQm4uE9AGPYxi8
Bitcoin

Thank you! Taifun
 

Download TaifunHotspot extension (aix file)
Download Toggle Hotspot Test project (aia file)
Back to top of page ...

Creative Commons License
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.


Home | Snippets | Tutorials | Extensions | Links | Search | Privacy Policy | Contact