tizen系统创建一个简单的通知代码
tizen系统创建一个简单的通知,可以创建简单的通知与定义的标题// PRIVILEGE needed to be set in tizen-manifest.xml:
// http://tizen.org/privilege/notification
#include <notification.h>
void
create_notification(char* text) {
notification_h notification = NULL;
notification = notification_create(NOTIFICATION_TYPE_NOTI);
if(notification != NULL) {
notification_set_text(notification, NOTIFICATION_TEXT_TYPE_TITLE, text, NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
notification_post(notification);
}
}
页:
[1]