这个简单的范例程序,描述了如何使用voicemail content provider APIs添加一个新的voicemail records.
这个程序里包含一个
AddVoicemailActivity
,
它能够进入voicemail的详情,并录制voicemail音频。通过点击“Send”按钮,就可以通过voicemail content provider把他们保存起来。
现实世界中,一个类似的程序可以从远程voicemail服务器现在voicemail,并且通过voicemail content provider把它们保存在本地。平台会保管好voicemail的通知和渲染。
Following interfaces are of particular interest:
VoicemailProviderHelper
and its implementation in
VoicemailProviderHelpers
.
This interface provides a good demonstration of various fields exposed by voicemail
content provider and their usage.
Voicemail
and its implementation in
VoicemailImpl
.
This interface provides a structured view of most the important fields in
voicemail content provider.