contacts_db_insert_record(contact, &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/>
+ 1. Application must have privilege of http://tizen.org/privilege/contact.write to use APIs such as contacts_db_insert_record().<br/>
+ 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/>
+ 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>
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>
</script>
</body>
-</html>
\ No newline at end of file
+</html>
</tr> \r
<tr> \r
<td class="note">For an application to insert private images in contacts, it needs to follow below conditions :<br/>\r
- 1. Application must have privilege of http://tizen.org/privilege/contact.write.<br/>\r
- 2. Application's private directory and files must have 'read' permission of others, '644' for example.<br/>\r
+ 1. Application must have privilege of http://tizen.org/privilege/contact.write to use APIs such as contacts_db_insert_record().<br/>\r
+ 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
3. Application may erase the image after destroying the contact record (contacts_record_destroy).<br/>\r
</td> \r
</tr> \r