android:对<;意向过滤器>;或<;行动>;
我得到了一个定义了2个自定义权限的应用程序:android:对<;意向过滤器>;或<;行动>;,android,android-intent,permissions,intentfilter,android-permissions,Android,Android Intent,Permissions,Intentfilter,Android Permissions,我得到了一个定义了2个自定义权限的应用程序: com.example.p1 com.example.p2 假设有两种外部应用程序: 可以发送Intent com.example.CREATE 另一个可以发送Intent com.example.INSERT 我想在我的应用程序中检查发送com.example.CREATE Intent的外部应用程序是否具有com.example.p1权限,以及发送com.example.INSERT的外部应用程序是否具有com.example.p2权限
- com.example.p1
- com.example.p2
- 可以发送Intent com.example.CREATE
- 另一个可以发送Intent com.example.INSERT
<intent-filter>
<action android:name="com.example.CREATE" />
</intent-filter>
<intent-filter>
<action android:name="com.example.INSERT"/>
</intent-filter>
但是我不知道如何检查第一个意图过滤器中的第一个权限和第二个意图过滤器中的第二个权限
我希望你能帮助我。
谢谢。创建一个
并在其上放置一个
元素。然后,在
(用于其过滤器)和
(用于其过滤器)上使用android:permission