Android 如何解析 Intent
2010-02-23 19:38:00 来源:WEB开发网
<activity
class=".NotesList"
android:label="@string/title_notes_list">
<intent-filter>
<action
android:value="android.intent.action.MAIN"
/>
<category
android:value="android.intent.category.LAUNCHER"
/>
</intent-filter>
<intent-filter>
<action
android:value="android.intent.action.VIEW"
/>
<action
android:value="android.intent.action.EDIT"
/>
<action
android:value="android.intent.action.PICK"
/>
<category
android:value="android.intent.category.DEFAULT"
/>
<type
android:value="vnd.android.cursor.dir/vnd.google.note"
/>
</intent-filter>
<intent-filter>
<action
android:value="android.intent.action.GET_CONTENT"
/>
<category
android:value="android.intent.category.DEFAULT"
/>
<type
android:value="vnd.android.cursor.item/vnd.google.note"
/>
</intent-filter>
</activity>
<activity
class=".NoteEditor"
android:label="@string/title_note">
<intent-filter
android:label="@string/resolve_edit">
<action
android:value="android.intent.action.VIEW"
/>
<action
android:value="android.intent.action.EDIT"
/>
<category
android:value="android.intent.category.DEFAULT"
/>
<type
android:value="vnd.android.cursor.item/vnd.google.note"
/>
</intent-filter>
<intent-filter>
<action
android:value="android.intent.action.INSERT"
/>
<category
android:value="android.intent.category.DEFAULT"
/>
<type
android:value="vnd.android.cursor.dir/vnd.google.note"
/>
</intent-filter>
</activity>
<activity
class=".TitleEditor"
android:label="@string/title_edit_title"
android:theme="@android:style/Theme.Dialog">
<intent-filter
android:label="@string/resolve_title">
<action
android:value="com.google.android.notepad.action.EDIT_TITLE"
/>
<category
android:value="android.intent.category.DEFAULT"
/>
<category
android:value="android.intent.category.ALTERNATIVE"
/>
<category
android:value="android.intent.category.SELECTED_ALTERNATIVE"
/>
<type
android:value="vnd.android.cursor.item/vnd.google.note"
/>
</intent-filter>
</activity>
更多精彩
赞助商链接