Tyler
Tyler

Reputation: 19848

Install an application shortcut programmatically

I am looking for a way to install a shortcut to my home Activity from inside my application. I only want to install the shortcut if it isn't there already. What is the best way to do this? Can I choose which screen the shortcut gets placed on?

Upvotes: 0

Views: 565

Answers (1)

gtcompscientist
gtcompscientist

Reputation: 681

From my research, you can place a shortcut to your Activity on the Homescreen, but you can't control which screen it shows up on.

Here is a reference for you, it should help you with sending the activity to the homescreen, but you likely won't be able to tell if one is already added, and you can't tell it which screen to place it on.

How to place a shortcut.

Upvotes: 1

Related Questions