Pippa Rose Smith
Pippa Rose Smith

Reputation: 1416

Turning on a Wifi Hotspot in an Android App Automatically

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?

Upvotes: 0

Views: 3068

Answers (2)

ductran
ductran

Reputation: 10203

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)

Upvotes: 0

Budius
Budius

Reputation: 39836

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.

Upvotes: 1

Related Questions