0

是否可以按包过滤意图?也就是说,我只想过滤 Google Maps action.SEND 意图以在我的应用程序中处理它们。例如,在 Google 地图中,我想通过“将位置发送给其他人”选项分享我的位置。我只想在这个选择器中显示我的应用程序。

我已经这样做了,但我知道我错过了一些东西。

        <intent-filter>
            <action android:name="android.intent.action.SEND"/>
            <category android:name="android.intent.category.DEFAULT"/>
            <data android:mimeType="text/plain" />
            <!-- Something here with com.google.android.apps.maps? -->
        </intent-filter>

谢谢!

4

0 回答 0