`
canofy
  • 浏览: 821860 次
  • 性别: Icon_minigender_1
  • 来自: 北京、四川
社区版块
存档分类
最新评论

Some Standard Activity Actions

阅读更多
摘自google android document
Standard Activity Actions

These are the current standard actions that Intent defines for launching activities (usually through startActivity(Intent). The most important, and by far most frequently used, are ACTION_MAIN and ACTION_EDIT.

ACTION_MAIN
    Activity Action: Start as a main entry point, does not expect to receive data.
    Input: nothing
    Output: nothing
    Constant Value: "android.intent.action.MAIN"
ACTION_VIEW
    Activity Action: Display the data to the user. This is the most common action performed on data -- it is the generic action you can use on a piece of data to get the most reasonable thing to occur. For example, when used on a contacts entry it will view the entry; when used on a mailto: URI it will bring up a compose window filled with the information supplied by the URI; when used with a tel: URI it will invoke the dialer.
    Input: getData() is URI from which to retrieve data.
    Output: nothing.
    Constant Value: "android.intent.action.VIEW"
ACTION_ATTACH_DATA
    Used to indicate that some piece of data should be attached to some other place. For example, image data could be attached to a contact. It is up to the recipient to decide where the data should be attached; the intent does not specify the ultimate destination.
    Input: getData() is URI of data to be attached.
    Output: nothing.
    Constant Value: "android.intent.action.ATTACH_DATA"

ACTION_EDIT
    Activity Action: Provide explicit editable access to the given data.
    Input: getData() is URI of data to be edited.
    Output: nothing.
    Constant Value: "android.intent.action.EDIT"
ACTION_PICK
    Activity Action: Pick an item from the data, returning what was selected.
    Input: getData() is URI containing a directory of data (vnd.android.cursor.dir/*) from which to pick an item.
    Output: The URI of the item that was picked.
    Constant Value: "android.intent.action.PICK"
ACTION_CHOOSER
ACTION_GET_CONTENT
ACTION_DIAL
ACTION_CALL
ACTION_SEND
ACTION_SENDTO
ACTION_ANSWER
ACTION_INSERT
ACTION_DELETE
ACTION_RUN
ACTION_SYNC
ACTION_PICK_ACTIVITY
ACTION_SEARCH
ACTION_WEB_SEARCH
ACTION_FACTORY_TEST
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics