blob: 27a9e49dbdda96365028e4c9cc193e8bb66a1b89 [file] [log] [blame]
Debashish Chatterjee8d6d2582011-05-16 16:52:17 +01001<p>
2This is a simple sample application that demonstrates how to use voicemail
3content provider APIs to insert new voicemail records.
4</p>
5<p>
6The application includes
7 <a href="src/com/example/android/voicemail/AddVoicemailActivity.html">
8 <code>AddVoicemailActivity</code>
9 </a>,
10an activity that lets the user enter voicemail details and record voicemail audio,
11which can then be stored with the voicemail content provider by tapping the "Send"
12button.
13<p>
14<img alt="Add voicemail" src="../images/VoicemailProviderDemo.png"
15 width=250px/>
16</p>
17
18<p>
19In the real world, a similar application could download voicemails from a
20remote voicemail server and store them locally with the voicemail content
21provider. The platform would then take care of notification and rendering of the
22voicemails.
23</p>
24<p>
25Following interfaces are of particular interest:
26<ul>
27 <li>
28 <a href="src/com/example/android/voicemail/common/core/VoicemailProviderHelper.html">
29 <code>VoicemailProviderHelper</code>
30 </a> and its implementation in
31 <a href="src/com/example/android/voicemail/common/core/VoicemailProviderHelpers.html">
32 <code>VoicemailProviderHelpers</code>
33 </a>.
34 This interface provides a good demonstration of various fields exposed by voicemail
35 content provider and their usage.
36 </li>
37 <li>
38 <a href="src/com/example/android/voicemail/common/core/Voicemail.html">
39 <code>Voicemail</code>
40 </a> and its implementation in
41 <a href="src/com/example/android/voicemail/common/core/VoicemailImpl.html">
42 <code>VoicemailImpl</code> </a>.
43 This interface provides a structured view of most the important fields in
44 voicemail content provider.
45 </li>
46 </ul>
47</p>