Languages

Menu
Sites
Language
wifi hotspot

Could any one guide on how to turn on wifi hotspot programmatically ?

Responses

8 Replies
Alex Ashirov

Hi,

It seems that there is no API to turn on this functionality. You can only check the current state of the wifi hotspot with

runtime_info_get_value_bool(RUNTIME_INFO_KEY_WIFI_HOTSPOT_ENABLED, &value);

Please correct me if I am wrong.

Alex Dem

Hi,
It is not quite clear. Do you mean how to manage on/off for another access point (hot spot device)?  I think that it is not able. Or maybe do you want to use your mobile device as hot-spot device?
But, maybe, I don't understand something.
Alexey.

Rajesh Swarnkar

Hello All,

I have similar issue. I want to use my Tizen Z1 mobile as wi-fi hot-spot progamatically. Please guide me.

Any help is greatly appreciated.

Jean Yang

Hi, 

Seems the is no API can be used to conrol the hotspot, but Z1 has the  wifi direct, you can refer the Z1 specifaciton 

http://www.devicespecifications.com/en/model/9f2531f9

colin Rao

Hi,

Seems the Z1 not support wifi hotspot currently.

#include <runtime_info.h>

bool value;
int ret;
ret = runtime_info_get_value_bool(RUNTIME_INFO_KEY_WIFI_HOTSPOT_ENABLED, &value);
if (ret != RUNTIME_INFO_ERROR_NONE)
{
   // Error handling
   return;
}
dlog_print(DLOG_INFO, LOG_TAG, "WiFi hotspot: %s", value ? "Enabled" : "Disabled");

log output,

06-02 17:37:38.220 : INFO / test ( 21274 : 21274 ) : WiFi hotspot: Disabled

 

Rajesh Swarnkar

Thank you so much guys for your response.

Is it possible to initiate wifi tethering using tizen apis?

daniel kim

Hi,

I've searched API reference but it looks like that there is no such API to initiate wifi tethering.

Regards.

alan cubero
  1. Add the following permission to your AndroidManifest.xml file:

 
 
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> <uses-permission android:name="android.permission.WRITE_SETTINGS"/> <uses-permission android:name="android.permission.TETHER_PRIVILEGED"/>