Android 全局搜索应用程序替换

标签 android android-manifest

我正在开发一款可以替代默认 Android 搜索应用的应用。我希望我的应用程序成为用户按下(而不是长按)硬件搜索按钮时运行的默认应用程序。这可能吗?

最佳答案

有一个 Intent :http://developer.android.com/reference/android/content/Intent.html#ACTION_SEARCH

所以基本上你只需要一个能听取 Intent 的应用程序,剩下的就是用户的选择......

关于Android 全局搜索应用程序替换,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5034605/

相关文章:

android - Android Market 中的应用程序与设备不兼容

android - 如何解决 android-studio 中的 'Manifest merger failed' 错误?

java - 从 API 请求 json 时无法下载超过 16144 个字符

android - RecyclerView ListAdapter 没有正确更新列表

android - 打开 GPS 时出现异常

android - BackupAgent 是如何工作的?

android - 如何将我的 Activity 设置为android中的主要 Activity ?

android - 如何知道用户何时打开/关闭移动数据或 WiFi?

java - 找不到 com.android.ant.SetupTask

android youtube api Volley 异常