Skip to content

Instantly share code, notes, and snippets.

@AOrobator
Last active December 3, 2016 18:15
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 AOrobator/0bab0346fab4b5974bd400e118080cd6 to your computer and use it in GitHub Desktop.
Save AOrobator/0bab0346fab4b5974bd400e118080cd6 to your computer and use it in GitHub Desktop.
Implementing Android App Shortcuts - AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.orobator.konstellations">
<application
android:name=".KonstellationsApplication"
android:allowBackup="true"
android:icon="@drawable/app_icon"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<meta-data
android:name="android.app.shortcuts"
android:resource="@xml/shortcuts"/>
</activity>
<activity
android:name=".ConstellationDetailActivity"
android:parentActivityName=".MainActivity"
android:theme="@style/DetailTheme">
</activity>
</application>
</manifest>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment