App create pinned shortcut

How we can create a shortcut to do specific action?
On Android and ios

What are you trying to do and what have you tried? Show screenshots.

I want creat a music player android app and i want to create a shortcut in home screen, that if the user click it the music will start

I believe that creating a shortcut on the home screen depends on the user at the time of install?

And as for creating a music player, use the play audio flow function.