[3.0][contacts-service]Add prerequisites - privileges
authorJongkyu Koo <jk.koo@samsung.com>
Wed, 16 Mar 2016 07:41:58 +0000 (16:41 +0900)
committerJongkyu Koo <jk.koo@samsung.com>
Wed, 16 Mar 2016 07:58:57 +0000 (16:58 +0900)
Change-Id: I25025c687a765346c5b53f46483c80693ff144c5
Signed-off-by: Jongkyu Koo <jk.koo@samsung.com>
org.tizen.tutorials/html/native/social/contact_tutorial_n.htm

index b94b969..5db7694 100644 (file)
 \r
 <p>This tutorial demonstrates how you can manage contacts and groups, and import them to or export them from the vCard format.</p>\r
 \r
-<p>This feature is supported in mobile applications only.</p>\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/contact.read&lt;/privilege&gt;\r
+  &nbsp;&nbsp;&nbsp;&nbsp;&lt;privilege&gt;http://tizen.org/privilege/contact.write&lt;/privilege&gt;\r
+  &nbsp;&nbsp;&nbsp;&nbsp;&lt;privilege&gt;http://tizen.org/privilege/callhistory.read&lt;/privilege&gt;\r
+  &nbsp;&nbsp;&nbsp;&nbsp;&lt;privilege&gt;http://tizen.org/privilege/callhistory.write&lt;/privilege&gt;\r
+  &lt;/privileges&gt;</pre>\r
 \r
   <h2>Warm-up</h2>\r
       <p>Become familiar with the Contacts API basics by learning about:</p>\r