如何在WhatsApp位置单击时通过我自己的android应用显示选择器意图? [英] How to show chooser Intent with my own android app on click of WhatsApp location?
本文介绍了如何在WhatsApp位置单击时通过我自己的android应用显示选择器意图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果存在共享位置的WhatsApp聊天,则单击该聊天会显示选择器意图与某些应用程序集合.我想编写一个意图过滤器,以便我的应用程序也可以在此处列出.
If there's a WhatsApp chat which has location shared, when clicked it shows a chooser intent with some set of applications. I want to write an intent filter so that my application will also be listed there.
推荐答案
将此添加到清单文件中(特定活动):
Add this to your Manifest file (Particular activity):
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="geo" />
</intent-filter>
这篇关于如何在WhatsApp位置单击时通过我自己的android应用显示选择器意图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文