Вопрос

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?

Это было полезно?

Решение

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.

Другие советы

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!

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top