What is the exhaustive list of all “android.intent.action” actions available in the Android SDK?

前端 未结 4 973
生来不讨喜
生来不讨喜 2021-01-30 05:45

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.inten

相关标签:
4条回答
  • 2021-01-30 05:55

    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.

    0 讨论(0)
  • 2021-01-30 06:14

    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)

    0 讨论(0)
  • 2021-01-30 06:17

    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).

    0 讨论(0)
  • 2021-01-30 06:18

    If there is any exhaustive list, it'd be here http://developer.android.com/reference/android/content/Intent.html starting at "Standard Activity Actions".

    0 讨论(0)
提交回复
热议问题