Skip to content

Instantly share code, notes, and snippets.

@fnk0
Created October 25, 2016 05:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fnk0/47640f8cef86d0c5550cc0b483f83ccd to your computer and use it in GitHub Desktop.
Save fnk0/47640f8cef86d0c5550cc0b483f83ccd to your computer and use it in GitHub Desktop.
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.myapp">
<application
android:name=".MyApp"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme">
<activity
android:name=".ui.home.HomeActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<!--
All we need to do here is specify which shortcuts or entry points have.
Note how the shortcuts file are added INSIDE the Activity tag with the LAUNCHER intent-filter
-->
<meta-data android:name="android.app.shortcuts"
android:resource="@xml/shortcuts" />
</activity>
</application>
</manifest>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment