2

I have just downloaded an application from the android market. When I have installed the application, at the same a time shortcut of that application has been created on the default desktop.

So, my question is: how can we create a shortcut of our application at the time of installation?

Tobbe
  • 1,825
  • 3
  • 21
  • 37
Nirav
  • 5,700
  • 4
  • 34
  • 44

2 Answers2

2

That's an option in the Android System settings for the end user. User can choose to have shortcuts created automatically. That's not something you can do as a developer.

nwaltham
  • 2,067
  • 1
  • 22
  • 40
  • 1
    I must add that neither is it something you SHOULD do. – Dimse Dec 07 '11 at 12:23
  • What I have written Please Read Care fully. If the application which is downloaded from android market can create shortcut at the time of installation then definitely we can do. It is just matter of finding solution. – Nirav Dec 07 '11 at 12:24
  • There is no definitely about it. Its the operating system - Android itself, not the application creating the shortcut. There are a lot of things you cannot do on Android programatically, even changing the time for example. There are frequently reasons why the folks who designed android want to prevent things from happening. – nwaltham Dec 07 '11 at 12:28
  • But If one Application(if it is not inbuilt) do then other application also can do. – Nirav Dec 07 '11 at 12:48
2

You're question is very similar to this one.

Give that one a try, it also creates an icon on the home screen, but not during installation. Of course you could make it so it creates this icon during the first run of the app if you want.

The icon being created during the installation is something the user can set in their options, it's not something you have influence on, so you'll have to use an option like above.

Community
  • 1
  • 1
Sander van't Veer
  • 5,930
  • 5
  • 35
  • 50