Created
February 10, 2014 11:52
-
-
Save simkimsia/8914536 to your computer and use it in GitHub Desktop.
example of android manifest for main activity From http://developer.android.com/guide/components/intents-filters.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<activity android:name="MainActivity"> | |
<!-- This activity is the main entry, should appear in app launcher --> | |
<intent-filter> | |
<action android:name="android.intent.action.MAIN" /> | |
<category android:name="android.intent.category.LAUNCHER" /> | |
</intent-filter> | |
</activity> | |
<activity android:name="ShareActivity"> | |
<!-- This activity handles "SEND" actions with text data --> | |
<intent-filter> | |
<action android:name="android.intent.action.SEND"/> | |
<category android:name="android.intent.category.DEFAULT"/> | |
<data android:mimeType="text/plain"/> | |
</intent-filter> | |
<!-- This activity also handles "SEND" and "SEND_MULTIPLE" with media data --> | |
<intent-filter> | |
<action android:name="android.intent.action.SEND"/> | |
<action android:name="android.intent.action.SEND_MULTIPLE"/> | |
<category android:name="android.intent.category.DEFAULT"/> | |
<data android:mimeType="application/vnd.google.panorama360+jpg"/> | |
<data android:mimeType="image/*"/> | |
<data android:mimeType="video/*"/> | |
</intent-filter> | |
</activity> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment