Skip to content

Instantly share code, notes, and snippets.

@cybercoder-naj
Last active June 3, 2022 10:07
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 cybercoder-naj/067dabd56fe963092b5d0cf6656520a7 to your computer and use it in GitHub Desktop.
Save cybercoder-naj/067dabd56fe963092b5d0cf6656520a7 to your computer and use it in GitHub Desktop.
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.nishant.shortcuts">
<application ...>
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<!-- Adding shortcuts config inside launcher activity -->
<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