Change Bluetooth visibility

Launch settings to enable/disable Bluetooth visibility
//    PRIVILEGE needed to be set in tizen-manifest.xml:
//    http://tizen.org/privilege/appmanager.launch

#include <dlog.h> // for logging purposes
#include <app_control.h>

void
change_bt_visibility(void)
{
   app_control_h app_control = NULL;
   app_control_create(&app_control);
   app_control_set_operation(app_control,  APP_CONTROL_OPERATION_EDIT);
   app_control_set_mime(app_control,  "application/x-bluetooth-visibility");

   if(app_control_send_launch_request(app_control, NULL, NULL) == APP_CONTROL_ERROR_NONE)
	   LOGI("Bluetooth settings launched!");

   app_control_destroy(app_control);
}

Responses

0 Replies