如何添加我的Android应用程序共享对话框? [英] How can I add my Android App to Share Dialog?
本文介绍了如何添加我的Android应用程序共享对话框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想通过共享对话框中添加我的应用程序。我怎样才能做到这一点?
I want to add my App to "Share via" Dialog. How can I do this?
推荐答案
您需要添加一个意图过滤器的manifest文件,指定一个动作,MIME类型的应用程序应该处理。事情是这样的:
You need to add an intent filter to the manifest file, specifying an action and mime type your application should handle. Something like this:
<intent-filter>
<action android:name="android.intent.action.SEND" />
<data android:mimeType="audio/*" />
</intent-filter>
这篇关于如何添加我的Android应用程序共享对话框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文