\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
+<privileges>\r
+ <privilege>http://tizen.org/privilege/calendar.read</privilege>\r
+ <privilege>http://tizen.org/privilege/calendar.write</privilege>\r
+</privileges></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
</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
CALENDAR_MATCH_EQUAL, CALENDAR_TODO_STATUS_COMPLETED);\r
if (error_code != CALENDAR_ERROR_NONE)\r
dlog_print(DLOG_ERROR, LOG_TAG, "filter add condition failed: %x\n", error_code);\r
</script>\r
\r
</body>\r
-</html>
\ No newline at end of file
+</html>\r