From e3cd271c8bdb65c08084060b544681c32b9a7edd Mon Sep 17 00:00:00 2001 From: Jeesun Kim Date: Thu, 17 Mar 2016 20:58:50 +0900 Subject: [PATCH] [3.0][calendar-service]Add prerequisites - privileges Signed-off-by: Jeesun Kim Change-Id: I592aa5e88dd407e006d1ef616f6a1337c48e76a4 --- .../html/native/social/calendar_tutorial_n.htm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/org.tizen.tutorials/html/native/social/calendar_tutorial_n.htm b/org.tizen.tutorials/html/native/social/calendar_tutorial_n.htm index fda683d..9d8385f 100644 --- a/org.tizen.tutorials/html/native/social/calendar_tutorial_n.htm +++ b/org.tizen.tutorials/html/native/social/calendar_tutorial_n.htm @@ -65,6 +65,14 @@

This feature is supported in mobile applications only.

+

Prerequisites

+

To use the contacts API, the application has to request permission by adding the corresponding privileges to the tizen-manifest.xml file.

+
+<privileges>
+    <privilege>http://tizen.org/privilege/calendar.read</privilege>
+    <privilege>http://tizen.org/privilege/calendar.write</privilege>
+</privileges>
+

Warm-up

Become familiar with the Calendar API basics by learning about:

@@ -1015,7 +1023,7 @@ if (error_code != CALENDAR_ERROR_NONE)

You can also create a filter with integer and time conditions. For example, to filter all completed todos:

-error_code = calendar_filter_add_int(filter, _calendar_todo.todo_status, 
+error_code = calendar_filter_add_int(filter, _calendar_todo.todo_status,
                                      CALENDAR_MATCH_EQUAL, CALENDAR_TODO_STATUS_COMPLETED);
 if (error_code != CALENDAR_ERROR_NONE)
    dlog_print(DLOG_ERROR, LOG_TAG, "filter add condition failed: %x\n", error_code);
@@ -1415,4 +1423,4 @@ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga
 
 
 
-
\ No newline at end of file
+
-- 
2.7.4