简体   繁体   English

如何在 Android 中以编程方式阅读语音邮件

[英]How to read voice mails programmatically in Android

Just wonder whether it's possible to access phone's voice mail box using code?只是想知道是否可以使用代码访问手机的语音信箱?

I have seen in Android 4.0, Google has introduce a new content provider called " android.provider.VoicemailContract.Voicemails " but I want to do this on older versions of Android?我在 Android 4.0 中看到,Google 引入了一个名为“ android.provider.VoicemailContract.Voicemails ”的新内容提供程序,但我想在旧版本的 Android 上执行此操作? Is it possible at all?有可能吗?

No, because each.network operator/phone manufacturer handles voicemail differently.否,因为每个网络运营商/电话制造商处理语音邮件的方式不同。 In many cases, there won't even be any app on the phone that knows about individual voice messages.在许多情况下,手机上什至不会有任何应用程序知道个人语音消息。 The best you can do is create a PhoneStateListener to listen for LISTEN_MESSAGE_WAITING_INDICATOR , which lets you read the message waiting indicator flag sent by the.network operator (answers the question "Are there any new voice messages?").你能做的最好的事情就是创建一个 PhoneStateListener 来监听LISTEN_MESSAGE_WAITING_INDICATOR ,它可以让你读取网络运营商发送的消息等待指示器标志(回答问题“是否有任何新的语音消息?”)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM