9

It's just known that since Android Oreo (API 26) is not posible to enable the wifi hotspot as in previous versions, with setApEnable().

Google has hiden and protected those methos, and the only posibility is to enable a local only hotspot with WifiManager.startLocalOnlyHotspot as here is described:

https://developer.android.com/reference/android/net/wifi/WifiManager#startLocalOnlyHotspot(android.net.wifi.WifiManager.LocalOnlyHotspotCallback,%20android.os.Handler)

For my project I need the hotspot funcionality to comunicate with another device, no internet needed but, I need to create the hotspot with some specific credentials that are preconfigured on the other device.

I've checked android documentation but I don't see if it's possible to do a startLocalOnlyHotspot with predefined parameters, SSID and PASSWORD.

Anyone knows if it's possible to configure them?

Thanks!

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
rul3s
  • 332
  • 1
  • 2
  • 18

0 Answers0