How to create dynamic app shortcut using ShortcutManager API for android 7.1 app?
<p>In Android 7.1, developer can able to create <a href="https://developer.android.com/preview/api-overview.html#shortcuts" rel="noreferrer">AppShortCut</a>.</p>

<p>We can create shortcut in two way:</p>

<ol>
<li>Static shortcuts using resources(XML) file.</li>
<li>Dynamic shortcuts using <code>ShortcutManager</code> API.</li>
</ol>

<p>So How to create a shortcut using <code>ShortcutManager</code> dynamically?</p>