1

I am making an Android app that will communicate via Bluetooth with other devices. These devices need to check WiFi hotspot. How can I, from inside the app, check if the phone is an WiFi hotspot?

I don't need to turn hotspot on from the application, just check if it has so I can tell the user to turn it on manually to be able to use the app.

EDIT: I just realized the question is not really correct.

The phone with the app I am developing connects to internet via wifi. Then it needs to share internet with other devices via Bluetooth. The answers here worked fine to check if WiFi hotspot is on. But I need to check if it can share internet via Bluetooth with other devices.

The phone gets internet via wifi, but the devices have to get internet via Bluetooth.

hawdy
  • 11
  • 2
  • @SaTech, I don't think that you know what the asker needs. Please, not decide instead of him. You didn't understand a question. – Vladyslav Matviienko Nov 22 '16 at 07:58
  • The thing is that the other device need to use the internet through the phone. If the phone is not a hotspot, the device can't use internet and the app will not work. – hawdy Nov 22 '16 at 07:58
  • 1
    duplicate? http://stackoverflow.com/questions/12401108/how-to-check-programmatically-if-hotspot-is-enabled-or-disabled – Rudy Nov 22 '16 at 08:03
  • 2
    @Rudy, duplicate of duplicate :-) – Vladyslav Matviienko Nov 22 '16 at 08:05
  • 1
    this then http://stackoverflow.com/questions/9065592/how-to-detect-wifi-tethering-state :) – Rudy Nov 22 '16 at 08:27
  • Thanks for the answers. However, I realized the question was not really correct. I edited the original post accordingly. – hawdy Nov 22 '16 at 08:49

0 Answers0