How to turn on hotspot or wifi programmatically
-
Hi, everyone, I am developing a mobile application using QML and C++ and I would like android phones to connect via hotspot.
I've looked at Qt Android Extras, QJniObject and the rest expecially the notifier example which i have run myself.
How do i write the java code for the creation of hotspot and connection something like Xender or Shareit applications.
Thanks, I am new to Qt programming. -
Hi, everyone, I am developing a mobile application using QML and C++ and I would like android phones to connect via hotspot.
I've looked at Qt Android Extras, QJniObject and the rest expecially the notifier example which i have run myself.
How do i write the java code for the creation of hotspot and connection something like Xender or Shareit applications.
Thanks, I am new to Qt programming.@QtProgrammerJosh
i am not sure if it is even possible to en-/disable Hotspot modus via JAVA directly. Most apps i've seen so far just forward you to the settings menu. This is normally done by starting a corresponding intents (e.g.startActivity(new Intent(Settings.ACTION_WIRELESS_SETTINGS));
)
I think you can use QtAndroid::startActivity() for that. -
Thanks @raven-worx for the quick response I'ld look into that.