Compose MMS with defined attachment

Compose MMS with defined attachment 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
mms_compose(char* filepath) {
	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_set_uri(app_control, filepath);

	if(app_control_send_launch_request(app_control, NULL, NULL) == APP_CONTROL_ERROR_NONE)
	   LOGI("MMS view launched!");

	app_control_destroy(app_control);
}

Responses

0 Replies