Add note for inserting private image in contacts
authorjiwon44.park <jiwon44.park@samsung.com>
Tue, 29 Sep 2015 10:21:27 +0000 (19:21 +0900)
committerjiwon44.park <jiwon44.park@samsung.com>
Tue, 13 Oct 2015 08:33:19 +0000 (17:33 +0900)
Change-Id: I1657690a0a3dd957931a7ad5a256853b80ffbfd3
Signed-off-by: jiwon44.park <jiwon44.park@samsung.com>
org.tizen.guides/html/native/social/contact_n.htm
org.tizen.tutorials/html/native/social/contact_tutorial_n.htm

index 3d6a6a1..530fce9 100644 (file)
@@ -598,6 +598,21 @@ contacts_record_add_child_record(contact, _contacts_contact.address, address);
 contacts_db_insert_record(contact, &amp;contact_id);
 contacts_record_destroy(contact, true);</pre>
 
+<table class="note">
+   <tbody>
+    <tr>
+     <th class="note">Note</th>
+    </tr>
+    <tr>
+     <td class="note">For an application to insert private images in contacts, it needs to follow below conditions:<br/>
+&nbsp;&nbsp;&nbsp;1. Application must have privilege of http://tizen.org/privilege/contact.write to use APIs such as contacts_db_insert_record().<br/>
+&nbsp;&nbsp;&nbsp;2. Application's private directory and files must have 'read' permission of others, '644' for example. SMACK protects read permission from the other applications.<br/>
+&nbsp;&nbsp;&nbsp;3. Application may erase the image after destroying the contact record (contacts_record_destroy).<br/>
+     </td>
+    </tr>
+   </tbody>
+</table>
+
 <h3>Record ID Property</h3>
 
 <p>An ID is a unique number for identifying records. Therefore, if you know the ID of a record, you can directly handle the record. The ID is read-only property, which is available after the record has been inserted into the database. The following example gets a contact record with an ID:</p>
@@ -711,10 +726,10 @@ contacts_vcard_make_from_contact(contact, &amp;vcard_stream);
 
 free(vcard_stream);
 contacts_record_destroy(contact, true);</pre>
-         
 
-   
+
+
+
 <script type="text/javascript" src="../../scripts/jquery.zclip.min.js"></script>
 <script type="text/javascript" src="../../scripts/showhide.js"></script>
 </div></div></div>
@@ -736,4 +751,4 @@ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga
 </script>
 
 </body>
-</html>
\ No newline at end of file
+</html>
index 2272dfe..779b60e 100644 (file)
@@ -290,8 +290,8 @@ error_code = contacts_record_set_str(image, _contacts_image.path, caller_id_path
     </tr> \r
     <tr> \r
      <td class="note">For an application to insert private images in contacts, it needs to follow below conditions :<br/>\r
-&nbsp;&nbsp;&nbsp;1. Application must have privilege of http://tizen.org/privilege/contact.write.<br/>\r
-&nbsp;&nbsp;&nbsp;2. Application's private directory and files must have 'read' permission of others, '644' for example.<br/>\r
+&nbsp;&nbsp;&nbsp;1. Application must have privilege of http://tizen.org/privilege/contact.write to use APIs such as contacts_db_insert_record().<br/>\r
+&nbsp;&nbsp;&nbsp;2. Application's private directory and files must have 'read' permission of others, '644' for example. SMACK protects read permission from the other applications.<br/>\r
 &nbsp;&nbsp;&nbsp;3. Application may erase the image after destroying the contact record (contacts_record_destroy).<br/>\r
 </td> \r
     </tr> \r