[2.4][calendar-service]Add prerequisites - privileges
authorJeesun Kim <iamjs.kim@samsung.com>
Thu, 17 Mar 2016 11:59:43 +0000 (20:59 +0900)
committerjeesun kim <iamjs.kim@samsung.com>
Thu, 17 Mar 2016 12:00:31 +0000 (21:00 +0900)
Signed-off-by: Jeesun Kim <iamjs.kim@samsung.com>
Change-Id: I658a5b90f4ec9b2b02b10cc727148406ce6e0e23

org.tizen.tutorials/html/native/social/calendar_tutorial_n.htm

index 34d6edd..13eb0b1 100644 (file)
 \r
 <p>This feature is supported in mobile applications only.</p>\r
 \r
+<h2 id="prerequisites" name="prerequisites">Prerequisites</h2>\r
+<p>To use the contacts API, the application has to request permission by adding the corresponding privileges to the tizen-manifest.xml file.</p>\r
+<pre class="prettyprint">\r
+&lt;privileges&gt;\r
+&nbsp;&nbsp;&nbsp;&nbsp;&lt;privilege&gt;http://tizen.org/privilege/calendar.read&lt;/privilege&gt;\r
+&nbsp;&nbsp;&nbsp;&nbsp;&lt;privilege&gt;http://tizen.org/privilege/calendar.write&lt;/privilege&gt;\r
+&lt;/privileges&gt;</pre>\r
+\r
 <h2 id="warmup" name="warmup">Warm-up</h2>\r
 \r
 <p>Become familiar with the Calendar API basics by learning about:</p>\r
@@ -1076,7 +1084,7 @@ if (error_code != CALENDAR_ERROR_NONE)
 </pre>\r
 <p>You can also create a filter with integer and time conditions. For example, to filter all completed todos:</p>\r
 <pre class="prettyprint">\r
-error_code = calendar_filter_add_int(filter, _calendar_todo.todo_status, \r
+error_code = calendar_filter_add_int(filter, _calendar_todo.todo_status,\r
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CALENDAR_MATCH_EQUAL, CALENDAR_TODO_STATUS_COMPLETED);\r
 if (error_code != CALENDAR_ERROR_NONE)\r
 &nbsp;&nbsp;&nbsp;dlog_print(DLOG_ERROR, LOG_TAG, &quot;filter add condition failed: %x\n&quot;, error_code);\r
@@ -1480,4 +1488,4 @@ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga
 </script>\r
 \r
 </body>\r
-</html>
\ No newline at end of file
+</html>\r