Hi fellows,
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...
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.
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 ?
Thanks !
--- UPDATE 23/01/2012 15h36 ---
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 :)
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
Turns out the first two contain plenty of raw Intents, including ones that are not defined in Intent.java !
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)
If there is any exhaustive list, it'd be here http://developer.android.com/reference/android/content/Intent.html starting at "Standard Activity Actions".
I'd like to know if there is some exhaustive reference of all Intent actions defined in the standard Android SDK ?
No.
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.
If it is not in the SDK, there is no guarantee that it will exist on any given version of Android (past/present/future) or on any given device (given manufacturers' ability to change non-SDK elements). Specifically in this case, there is no AudioService
in the Android SDK and there is no HDMI_PLUG
action in the Android SDK.
No, at least I have not found an exhaustive list and have been looking for one. I was looking for all of the NFC related Intents (e.g. ACTION_NDEF_DISCOVERED, ACTION_TECH_DISCOVERED, ...).
It seems like the developer.android.com documentation is all piece-meal. What I mean is that there is hardly any 'definitive' sections on anything. A little bit frustrating. (But that's just my opinion).