Sample manifest files
satya - 11/9/2013 9:51:26 AM
Example 1
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.androidbook.asynctask"
android:versionCode="1"
android:versionName="1.0.0">
<uses-sdk android:minSdkVersion="14" />
<application android:name="com.androidbook.asynctask.MyApplication"
android:icon="@drawable/icon"
android:label="Test Async Task">
<activity android:name="com.androidbook.asynctask.TestAsyncTaskDriverActivity"
android:label="Test Asynctask">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.androidbook.asynctask.TestProgressBarDriverActivity"
android:label="Test Progress bars"/>
</application>
</manifest>
satya - 2/22/2014 10:34:59 AM
Another example
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.notepad">
<application android:icon="@drawable/app_notes"
android:label="@string/app_name">
<provider class=".NotePadProvider"
android:authorities="com.google.provider.NotePad" />
<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.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>
</application>
</manifest>
satya - 2/22/2014 10:35:37 AM
Simplest definition for an activity
<activity android:name="com.androidbook.asynctask.TestProgressBarDriverActivity"
android:label="Test Progress bars"/>
satya - 2/22/2014 10:36:04 AM
When the activity needs to be implicit
<activity android:name="com.androidbook.asynctask.TestProgressBarDriverActivity"
android:label="Test Progress bars">
<intent-filter>
<action android:name="com.androidbook.intent.action.ME" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>