# Creating Android App Shortcuts

DevFeed: [Creating Android App Shortcuts](<https://devfeed.tech/articles/creating-android-app-shortcuts-22800.md>)

Original publisher: [Read original article](<http://androidessence.com/creating-android-app-shortcuts/>)

Author: Adam McNeilly

Published: 2017-04-14T00:00:00Z

Content type: tutorial

Language: en

Sources: [Android Essence](<https://devfeed.tech/sources/android-essence.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [App](<https://devfeed.tech/topics/app.md>), [Code](<https://devfeed.tech/topics/code.md>), [XML](<https://devfeed.tech/topics/xml.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [api](<https://devfeed.tech/tags/api.md>), [app](<https://devfeed.tech/tags/app.md>), [code](<https://devfeed.tech/tags/code.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [java](<https://devfeed.tech/tags/java.md>), [shortcuts](<https://devfeed.tech/tags/shortcuts.md>), [xml](<https://devfeed.tech/tags/xml.md>)

## AI overview

A tutorial on creating Android app shortcuts for Android 7.1 and later. It explains how to define static shortcuts in XML and create dynamic shortcuts in Java, including launcher metadata and ShortcutManager usage.

## Source excerpt

Android app shortcuts are a special feature added in Android 7.1 (API 25). Shortcuts are special actions that appear when you long press on a launcher icon, that will trigger a specified intent. With this post you will learn how to create both static and dynamic app shortcuts. The only pre-requisite is that your app is targeting API 25 or greater. Static Shortcuts Static app shortcuts are shortcuts that are defined via XML. This means they are created at compile time, and will be consistent as long as your app is on the user's device. Common use cases for this would be to launch a regularly used activity in your app that is not the launcher activity.