Question

I have an android program, written in Java and it uses a Wifi Hotspot, which at the minute I am having to turn on and give the settings manually.

I would like for the hotspot to be turned on with my settings from inside the program.

I have seen a few posts relating to this, some people with answers but they don't seem to be very clear.

Does anyone know of anything that can help me?

Was it helpful?

Solution

as far as I know there' absolutely no API on Android to achieve this functionality. The maximum you can do is like on this app https://play.google.com/store/apps/details?id=com.budius.WiFiShoot that it checks if the feature is enabled, and in case it's not it sends the user to the settings screen.

OTHER TIPS

I tried to use this way:

  • Scan all avaiable wifi hotspot.
  • Check security type of these hotspots(WPA, WPA2, WEP, OPEN).
  • Make authenticate to connect hotspot by SSID.

I used wifi-connector library (especially Wifi.java file)
Hope this help!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top