Menu
Sites
Language

Create a simple notification

Create simple notification with defined title
//    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);
	}
}

Responses

1 Replies
kunqing wang

hi buddy:

I want to get the notification content of the other handlers,how to get the text contenct?

for example:

we can get some notifcations sometimes,but how to get the content of all the other notifications?