4

I hear that the Android's desktop is an application that I can change. I'm searching for some information about how to do that.

The Student
  • 27,520
  • 68
  • 161
  • 264

2 Answers2

8

I guess you mean when you press the home button you want to have your app there instead of the default home screen? And do you mean on a non-rooted phone?

I use an intent filter for that, i.e. I want my activity to start on phone boot-up and be the default home screen.

<intent-filter>
    <action android:name="android.intent.action.MAIN"/>
    <category android:name="android.intent.category.LAUNCHER"/>
    <category android:name="android.intent.category.HOME"/>
    <category android:name="android.intent.category.DEFAULT"/>
</intent-filter>

On a regular phone, the user will get an option to choose between your app and the default home screen though at first, although he can mark a checkbox then to always choose this app as the default screen then - but your app cannot force the user to do that.

Mathias Conradt
  • 28,420
  • 21
  • 138
  • 192
-1

In the market you can search for Home Replacements. Once you install one and press the home button you will get a Choose Dialog, that let's you pick from the default Home and the newly installed one.

The current Home Screen that I use is Launcher Pro.

Robby Pond
  • 73,164
  • 16
  • 126
  • 119
  • But... that won't help too much. I guess, the dude want to know how to do it in his own application. – Cristian Jul 08 '10 at 14:37