Skip to content

Instantly share code, notes, and snippets.

@TarekBenDriss
Created December 8, 2019 21:56
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 TarekBenDriss/85543860f4ffc362ebcb23c50627ebee to your computer and use it in GitHub Desktop.
Save TarekBenDriss/85543860f4ffc362ebcb23c50627ebee to your computer and use it in GitHub Desktop.
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android">
<shortcut
android:shortcutId="call"
android:enabled="true"
android:icon="@drawable/ic_phone"
android:shortcutShortLabel="@string/call_shortcut_short_label"
android:shortcutLongLabel="@string/call_shortcut_long_label"
android:shortcutDisabledMessage="@string/call_disabled_label">
<intent
android:action="android.intent.action.VIEW"
android:targetPackage="com.bendriss.shortcutsapp"
android:targetClass="com.bendriss.shortcutsapp.CallActivity" />
</shortcut>
<shortcut
android:shortcutId="messages"
android:enabled="true"
android:icon="@drawable/ic_camera"
android:shortcutShortLabel="@string/camera_shortcut_short_label"
android:shortcutLongLabel="@string/camera_shortcut_long_label"
android:shortcutDisabledMessage="@string/camera_disabled_label">
<intent
android:action="android.intent.action.VIEW"
android:targetPackage="com.bendriss.shortcutsapp"
android:targetClass="com.bendriss.shortcutsapp.CameraActivity" />
</shortcut>
</shortcuts>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment