从Android应用程序选择器隐藏应用程序 [英] hide application from android application chooser

查看:387
本文介绍了从Android应用程序选择器隐藏应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我创建了解析,并显示某本书(假设为默认的书)的应用程序(BookReader)。
但是,如果我只是我的设备上复制任何其他的书,并尝试打开它,Android的显示器建议安装的应用程序可以打开我的书的清单。在这些建议的应用是我的应用程序(BookReader)也是一样,如果选择它打开那本书。
如何设置我的应用程序,所以它不会在建议的Andr​​oid应用程序列表中出现?因为我不想被用于打开别的书我的应用程序。只是默认的。

Hi I created an application (BookReader) that parses and displays a certain book (given as the default book). But if I simply copy any other book on my device and attempt to open it, android displays a list of suggested installed applications that can open my book. Among these suggested applications is my app (BookReader) too and if selected it opens that book. How can set my app so it won't appear in the suggested android apps list? Because I don't want my app to be used for opening other books. Just the default one.

感谢

请注意!我希望它出现在应用程序列表。我只是不希望出现为打开其他书籍或文件的应用程序的建议。

NOTE! I want it to appear in the application list. I just don't want to appear as a app suggestion for opening other books or files.

推荐答案

谢谢你们!
我在其中是意向过滤器是打开这些文件格式的动作相匹配的内部清单文件删除MIMETYPES解决它。
希望这可以帮助别人太

thanks guys! I solved it by removing the mimeTypes in the manifest file which were inside the intent-filter that was a match for the action of opening those file formats. Hope this helps others too

这篇关于从Android应用程序选择器隐藏应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆