Compose sms with defined text and recipient number
Compose SMS with defined body and recipient number using default application
// PRIVILEGE needed to be set in tizen-manifest.xml:
// http://tizen.org/privilege/appmanager.launch
#include <dlog.h> // for logging purposes
#include <app_manager.h>
void
sms_compose(char* recipient, char* text) {
app_control_h app_control = NULL;
app_control_create(&app_control);
app_control_set_operation(app_control, APP_CONTROL_OPERATION_COMPOSE);
app_control_set_app_id(app_control, "tizen.messages");
app_control_add_extra_data(app_control, APP_CONTROL_DATA_TO, recipient);
app_control_add_extra_data(app_control, APP_CONTROL_DATA_TEXT, text);
if(app_control_send_launch_request(app_control, NULL, NULL) == APP_CONTROL_ERROR_NONE)
LOGI("SMS view launched!");
app_control_destroy(app_control);
}