Explicit web site open
Explicit method to open web site in browser. URL address does not have to be input with "http://" prefix.
// 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
open_site(char* address) {
app_control_h app_control = NULL;
app_control_create(&app_control);
app_control_set_operation(app_control, APP_CONTROL_OPERATION_DEFAULT);
app_control_set_app_id(app_control, "com.samsung.browser");
app_control_set_uri(app_control, address);
if(app_control_send_launch_request(app_control, NULL, NULL) == APP_CONTROL_ERROR_NONE)
LOGI("Browser launched!");
app_control_destroy(app_control);
}