https://developer.android.com/training/basics/intents/filters.html

criteria n. 标准,条件(criterion的复数)
Your app only needs permissions for actions that it performs directly. Your app does not need permission if it is requesting that another app perform the task or provide the information. For example, if your app needs to read the user’s address book, the app needs the READ_CONTACTS permission. But if your app uses an intent to request information from the user’s Contacts app, your app does not need any permissions, but the Contacts app does need to have that permission.
如果你的app需要读取通讯录,那么它需要READ_CONTACTS权限,但是如果你的app需要从一个通讯录类型的app获取一些信息,那么你的app不需要申请任何权限,但是这个通讯录app需要该权限。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
感谢提供您的代码。根据您提供的代码,我注意到您在 `<actions>` 标签中缺少了一个闭合的 `</action>` 标签,导致 XML 结构错误。请将您的代码修改如下: ```xml <idea-plugin> <id>com.your.company.unique.plugin.id</id> <name>wkx_plugin</name> <version>1.0</version> <vendor email="wangkexin6@yourcompany.com" url="http://www.hikvision.com">HikVision</vendor> <!-- description><![CDATA[ xml和excel互相转换插件.<br> www.wkx666.<em>com</em></description --> <!-- change-notes><![CDATA[ Add change notes here.<br> most <em>HTML tags may be used</em> ]]> </change-notes--> <!-- please see https://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html for description --> <idea-version since-build="173.0"/> <!-- please see https://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html on how to target different products --> <depends>com.intellij.modules.platform</depends> <extensions defaultExtensionNs="com.intellij"> <!-- Add your extensions here --> <actions> <action id="myAction" class="com.example.MyAction" text="My Action" description="My description"> <add-to-group group-id="MainMenu.Tools" anchor="last"/> <keyboard-shortcut first-keystroke="control alt A"/> </action> <!-- 添加一个闭合的 </action> 标签 --> </actions> </extensions> <actions> <!-- Add your actions here --> </actions> </idea-plugin> ``` 请确保 `<action>` 标签被正确地嵌套在 `<actions>` 标签内,并且每个 `<action>` 标签都有相应的闭合标签 `</action>`。 完成修改后,重新编译和运行插件,您应该能够在 "Tools" 菜单中看到您的新 action。如果问题仍然存在,请提供更多关于错误信息或其他相关代码的详细信息,以便我们能够更好地帮助您解决问题。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值