how to make android app shortcut in android studio

1 699

android app icon shortcut

hello, folk in this tutorial I will cover how you can code in the android studio to generate a  programmatically your android app icon shortcut on the home screen,when android user opens your app ,your app will create an icon shortcut on home screen it is very simple just we have to write few lines of codes in main activity and just one permission in AndroidManifest.xml.lets start 😉

Main activity

AndroidManifest.xml

In AndroidManifest.xml we will set Install Shortcut permission

Comments

comments

  1. Ayan says

    Hello getting error
    when i install and shortcut created successfully but when i click on shortcut the showing error app not found

    tell me how can sole it

Leave A Reply

Your email address will not be published.