How to custom my own home screen?

by water » Fri, 13 Feb 2009 02:06:24 GMT

Sponsored Links
 Android phone has a default home screen,a clock in the middle,and four
icons in the bottom,
i want to change this layout,
May i develop a application,after i installed it,it replace the
default home screen?


How to custom my own home screen?

by Scynasty » Fri, 13 Feb 2009 04:23:25 GMT

 add    <category android:name="android.intent.category.HOME" />  in
the intent-filter of the activity you want as the home screen. when
the home button is clicked it will ask which home screen you want to


Sponsored Links

Other Threads

1. Restarting a MediaPlayer

So I wanted to use MediaPlayers to play two different songs, and I
wanted to always start a new song from the beginning.

Apparently there's no way to restart a single MediaPlayer's track from
the beginning without reloading the file with setDataSource()...
intuitively, stop() would do it, but it apparently doesn't. And I also
can't find a way to use setDataSource() with a raw resource. I tried
where _res was gotten with context.getResources() or something like
that, and it compiled but didn't load the track.

I'm using a SoundPool for my game's SFX, but it takes too long to load
the longer music tracks, which is a shame. That class seemed designed
much more intelligently.

So after trying a whole lot of different ways (why is there no
getState() method for MediaPlayers? That would make dealing with the
awful state system a little better, at least), I was about to give up,
but I decided to try one more thing. So now I'm using just one
MediaPlayer for both tracks, and doing:

musicLoop = MediaPlayer.create(_context, R.raw.loop);

Everything seems to be working fine, and I tried making this code (and
its twin for the other song) run over and over again, and there were
no crashes and it kept on playing the songs correctly... but this is
still nagging at me. What exactly does create() do? Am I leaving a
trail of unreferenced MediaPlayers behind whenever I use create() to
rebuild an existing MediaPlayer? If so, will the GC get them? (It
seems that it does, because I had an issue at first in another thread
where musicLoop.start() would be called during the creating, and then
two songs would play for a short time before the old one would
suddenly cut off.)

This could be unrelated, but I also just suddenly ran out of internal
flash space when I hadn't just installed anything. I'm not sending a
bunch of unreferenced MediaPlayers to a page file or anything, am I?


2. mail to group


I don't see my mails sent to these groups. is that any issue ?



3. Custom locking screen

4. How can I create TextAppearanceSpan which looks like an anchor

5. OnActivityResult passing a null intent

6. JetPlayer keeps logging "write blocked for X msecs" - is this normal?

7. Weird stuff - help!