_skyfish 2013-05-31 06:31 采纳率: 57.1%
浏览 4328

manifest.xml中的Action和Activity是什么关系

<activity android:name="BookmarkActivity"
        android:theme="@style/EditorActivityTheme"
        android:windowSoftInputMode="adjustResize">

        <intent-filter android:label="@string/add_bookmark">
            <action android:name="android.intent.action.INSERT" />
            <category android:name="android.intent.category.DEFAULT" />
            <data android:mimeType="vnd.android.cursor.dir/bookmark" />
        </intent-filter>

如上所示的Activity与这个action是什么关系?

  • 写回答

1条回答 默认 最新

  • 码密码密哄 2013-05-31 09:10
    关注

    Action官方解释
    A string naming the action to be performed — or, in the case of broadcast intents, the action that took place and is being reported. The Intent class defines a number of action constants。

    代表此Activity能接受的广播的action 或者action所对应系统进行的操作。
    例如:Intent.ACTION_CALL调用的就是系统的打电话

    评论

报告相同问题?