Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
219 views
in Technique[技术] by (71.8m points)

launcher - How can I create a custom home-screen replacement application for Android?

How do I create a home-screen replacement application? Is there any information about the home-screen application available?

Can any application be a home-screen by just registering it with a CATEGORY_HOME intent?

Question&Answers:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Writing your own home screen application is possible. It is called the Launcher.

You can get the source code of the default Android Launcher via Git.

The project URL is:

https://android.googlesource.com/platform/packages/apps/Launcher2.git

You can get the source code like this:

git clone https://android.googlesource.com/platform/packages/apps/Launcher2.git

That will create a directory called Launcher2 for you. Now you can get cracking and create your custom launcher.

If you need help with using Git then checkout Git's documentation section.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...