SD 卡上的默认铃声:找不到音频
我一直在尝试扩展我的手机配置文件应用程序,以便能够处理手机的默认铃声。
当将我的应用程序设置为使用默认铃声和系统默认铃声时,它设置得很好。当我尝试设置 /sdcard 上的默认铃声时,Uri 会正确输入,但在设置它时,它只会拉出指向设备 Settings.System 设置的指针,该指针似乎并不指向我的铃声媒体。
通常,当设置系统默认铃声时,它会显示设置的名称和 Uri,没有问题,但使用外部铃声时,会显示“未知铃声”,并且 Uri 会向我们显示指向系统设置的指针)。
我使用 RingtoneManager.getDefaultType()
获取 Uri,然后使用 setActualDefaultRingtoneUri()
来设置它。
I've been trying to extend my phone profile app to be able to handle the phone's default ringtone.
When setting my app to use the default ringtone with a system default one, it sets fine. When I try to set a default ringtone which is on /sdcard, the Uri goes in correctly, but when it comes to setting it, it only pulls out the pointer to the devices Settings.System setting which doesn't seem to point to my ringtone media.
Usually, when setting a system default one, it Toast's the name and Uri as it sets, with no issue, but with an external one, says "Unknown ringtone" and the Uri shows us the pointer to the system setting).
I'm using RingtoneManager.getDefaultType()
to get the Uri, then setActualDefaultRingtoneUri()
to set it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
进入
菜单->设置->应用程序->开发
关闭手机调试。然后取消选中该框。
Shut off phone debugging by going into
Menu->Settings->Applications->Development
.Then uncheck the box.