This is a sample repository for the use of App Shortcuts in Android 7.1+. This sample uses both a static shortcut (defined via XML) and a dynamic shortcut (added via Java code).
The blog post can be found here: http://androidessence.com/creating-android-app-shortcuts/