Android Intent-filter 适用于 Magic,但没有 Hero,可能是什么问题?

标签 android android-intent android-manifest

我正在开发一个应用程序,该应用程序的 Activity 设置为具有 Intent 过滤器

<intent-filter>
   <action android:name="android.intent.action.RINGTONE_PICKER"/>
   <category android:name="android.intent.category.DEFAULT"/>
</intent-filter>

当我使用 HTC Magic 手机进行测试时,这工作正常,当我进入设置 -> 设置铃声时,我可以从我的应用程序或内置的铃声选择器中进行选择......但在 Hero 上它直接进入构建在选择器中...

有人知道问题出在哪里吗?

最佳答案

感谢您的回复,但我们已经找到了一种方法...添加另一个 intent-filter...似乎 HTC Hero 使用 HTC_RINGTONE_PICKER intent 代替 RINGTONE_PICKER intent...

关于Android Intent-filter 适用于 Magic,但没有 Hero,可能是什么问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1770263/

相关文章:

android - 无法从共享首选项中保存的 URI 加载图像

android sdk 版本 3.0 minSdkVersion

android - Dalvikvm 使用 Manifest 用户权限运行 jar 文件

android - 如何将 Dalvik 字节码转换为 LLVM IR?

android - 如何从android中的相机读取数字和文本?

android - 动画 Gif 图像在 Phonegap 中不起作用

android - 在 Android Webview 中从浏览器打开链接

android - 左外连接 sql 不工作

android - 如何在android studio中添加图标图像按钮

android - 为什么我的 android 应用程序 apk 的新版本不能安装在旧版本上