SD 卡上的默认铃声:找不到音频

发布于 2024-09-08 11:19:14 字数 377 浏览 10 评论 0原文

我一直在尝试扩展我的手机配置文件应用程序,以便能够处理手机的默认铃声。

当将我的应用程序设置为使用默认铃声和系统默认铃声时,它设置得很好。当我尝试设置 /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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

别在捏我脸啦 2024-09-15 11:19:14

进入菜单->设置->应用程序->开发关闭手机调试。
然后取消选中该框。

Shut off phone debugging by going into Menu->Settings->Applications->Development.
Then uncheck the box.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文