如何创建自定义主屏替代的应用程序为Android? [英] 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?
可以在任何应用程序是一个主屏,只需注册其与 CATEGORY_HOME
意图是什么?
Can any application be a home-screen by just registering it with a CATEGORY_HOME
intent?
推荐答案
编写自己的主屏幕应用是可能的。这就是所谓的启动。
Writing your own home screen application is possible. It is called the Launcher.
您可以得到默认的来源$ C $ C Android的启动通过的Git 。
You can get the source code of the default Android Launcher via Git.
该项目网址是:
<一个href="https://android.googlesource.com/platform/packages/apps/Launcher2.git">https://android.googlesource.com/platform/packages/apps/Launcher2.git
您可以得到源$ C $ C是这样的:
You can get the source code like this:
git clone https://android.googlesource.com/platform/packages/apps/Launcher2.git
这将创建一个名为的launcher2 的为你的目录。现在,你可以得到开裂和创建自定义的发射器。
That will create a directory called Launcher2 for you. Now you can get cracking and create your custom launcher.
<子>如果你需要使用Git然后结帐Git的文档部分帮助。
这篇关于如何创建自定义主屏替代的应用程序为Android?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!