如何创建自定义主屏替代的应用程序为Android?自定义、应用程序、Android

2023-09-11 11:33:41 作者:繁华散尽终成回忆

如何创建一个主屏替代应用程序?是否有关于主屏应用程序的任何资料?

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.

该项目网址是:

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的文档部分帮助。