我正在尝试使用 VoicemailContract,但我不断收到权限错误,即使我在清单中包含了权限。任何人都可以阐明发生了什么吗?
尝试访问语音邮件提供商时出现此错误:
java.lang.SecurityException: Permission denied for URI: content://com.android.voicemail/voicemail?source_package=com.google.android.apps.googlevoice
Requires com.android.voicemail.permission.READ_WRITE_ALL_VOICEMAIL permission.
我在清单中添加了以下两个权限:
<uses-permission android:name="com.android.voicemail.permission.ADD_VOICEMAIL" />
<uses-permission android:name="com.android.voicemail.permission.READ_WRITE_ALL_VOICEMAIL" />
我也没有得到以下广播意图:
<receiver
android:name=".VoicemailReceiver"
android:exported="true" >
<intent-filter>
<action android:name="android.intent.action.NEW_VOICEMAIL" />
</intent-filter>
</receiver>
任何帮助,将不胜感激。谢谢!