什么是所有&QUOT的详尽清单; android.intent.action"在Android SDK中提供的操作? [英] What is the exhaustive list of all "android.intent.action" actions available in the Android SDK?

查看:98
本文介绍了什么是所有&QUOT的详尽清单; android.intent.action"在Android SDK中提供的操作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

研究员

我想知道是否有在标准Android SDK中定义的所有意图动作的一些详尽的参考?我想的完全android.intent.action.someaction的名字,不是方便别名行动的意图类中定义的限制列表,如Intent.ACTION_VIEW,Intent.ACTION_POWER_CONNECTED,等等...

I'd like to know if there is some exhaustive reference of all Intent actions defined in the standard Android SDK ? I'm thinking of the full "android.intent.action.someaction" names, not the restricted list of conveniently aliased actions defined in the Intent class, e.g Intent.ACTION_VIEW, Intent.ACTION_POWER_CONNECTED, etc...

对于那些谁相信所有的意图行动别名在Intent类(我也是其中一员,直到最近),我至少有一个动作是不是:android.intent.action.HDMI_PLUG(媒体/ Java中定义的/安卓/媒体/ AudioService.java),我相信有很多人。

For those who believe all Intent actions are aliased in the Intent class (I was one of them until very recently) I have at least one action which is not : android.intent.action.HDMI_PLUG (defined in media/java/android/media/AudioService.java) and I believe there are many others.

但我不能找到一些详尽的清单在Android参考,所以也许你可以直接我的一些地方,我可以找到它?

But I could not find some exhaustive list in the Android Reference, so maybe if you can direct me to some place I can find it ?

谢谢!

---更新23/01/2012 15h36 ---

--- UPDATE 23/01/2012 15h36 ---

感谢CommonsWare为提HDMI_PLUG是不是所有的部分Android SDK的...这是一个坏榜样,但仍然有一些没有在Intent.java定义的意图,如TelephonyManager.ACTION_PHONE_STATE_CHANGED。

Thanks to CommonsWare for mentioning HDMI_PLUG is not at all part of the Android SDk... it was a bad example, but still, there are intents that are not defined in Intent.java, such as TelephonyManager.ACTION_PHONE_STATE_CHANGED.

推荐答案

嘿,我想我回答我自己的问题:)

Hey I think I answered my own question :)

在我的Andr​​oid SDK目录,在/平台/ Android的X /数据(x是API级别),我发现了几个非常有趣的文件:

In my Android SDK directory, under /platforms/android-x/data (x being the API level) I've found several very interesting files:

  • activity_actions.txt
  • broadcast_actions.txt
  • categories.txt
  • features.txt
  • widgets.txt

原来两个第一那些含有大量生意图的,包括那些未在Intent.java定义!

Turns out the two first ones contain plenty of raw Intents, including ones that are not defined in Intent.java !

我不太明白载文列出了在这里的,我只是想以确保他们有详尽的为他们的API级别...(即使我不明白为什么他们不会)

I'm not quite sure what theses lists are here for, I'd just like to be sure they are exhaustive for their API level... (even if I don't see why they wouldn't be)

这篇关于什么是所有&QUOT的详尽清单; android.intent.action"在Android SDK中提供的操作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆