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.
An Intent object carries information that the Android system uses to determine which component to start (such as the exact component name or component category that should receive the intent), plus information that the recipient component uses in order to properly perform the action (such as the action to take and the ...
There are two intents available in android as Implicit Intents and Explicit Intents. Intent send = new Intent(MainActivity. this, SecondActivity. class); startActivity(send);
An intent allows you to start an activity in another app by describing a simple action you'd like to perform (such as "view a map" or "take a picture") in an Intent object.
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:
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 you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With