how to add shortcut into gallery?

I want to add app shortcut into gallery. What API can I use?