从源代码自定义Android启动自定义、源代码、Android

2023-09-07 05:01:02 作者:吥崾銩丅莪、ぬ庅

我要定制的Andr​​oid的发射器(从谷歌的来源),我的问题是:我应该从哪里开始呢? (下载源启动)如果我想将一些快捷方式的主屏幕上,这里是类呢?如何运行启动的Andr​​oid模拟器?

I want to customize the Launcher of android (from source of google), my question is: Where should I start? (Download the Launcher source) If I want to place some shortcut on home screen, where is the class to do? How to run that Launcher on Android Emulator?

感谢:)

推荐答案

首先,我会反对这项建议。默认的Andr​​oid启动使用多个API是不向公众公开,我花了大约9个小时只得到它来编译。即便如此,它的一部分是行不通的。例如,我可以通过当前的页面看到进入下一个程序。此外,窗口小部件不工作,因为发射器使用一些私有方法添加它们,这是唯一可以由同一键ROM签名的软件。

Firstly, I'd advise against this. The default android launcher uses several APIs that aren't available to the public, and it took me around 9 hours to just get it to compile. Even then, parts of it wouldn't work. For example, I could see through the current Page into the next one. Also, widgets don't work because the launcher uses some private method to add them, which is only available to apps signed by the same key as the ROM.

您或许应该用提供的主屏幕更换SDK示例工作。但是,如果你仍然想这样做,从GitHub的库下载的launcher2并开始通过错误一个接一个的工作。

You should probably work with the home screen replacement SDK sample provided. However, if you still want to do this, download Launcher2 from the github repository and start working through errors one by one.