简单的方法来构建Android系统的应用程序? (Eclipse进行为例)为例、方法来、应用程序、简单

2023-09-05 00:49:16 作者:冷〤夜轩

能否有人可以告诉我,如果有建设系统的应用程序为Android的简单方法?

由于ICS 4.0.3是出于和开源,severals替代发射开始推出类似的投石机或新星发射。它显然是基于系统启动,我不知道他们是如何做到这一点。

如果您克隆的发射器:

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

和尝试在Eclipse中打开它,它不会工作,因为它使用一些类和变量未present在SDK中,只有present在整个框架。

有没有办法建立或得到它,并将其添加到Eclipse(像的android.jar为SDK),并建立使用Eclipse启动程序?如果没有,可有人指出我的一个很好的教程要做到这一点usong命令行?

感谢

解决方案   

有没有办法建立或得到它,并将其添加到Eclipse(像的android.jar为SDK),并建立使用Eclipse启动?

安卓开发 Android创建和使用数据库详细指南

没有。

  

如果没有,可有人表示了我一个很好的教程要做到这一点usong命令行?

您不能这样做,在命令行,无论是。

要转换的AOSP应用程序到一个独立的SDK应用程序,你需要找到所有的类和变量不是present在SDK,并删除/替换对它们的引用。最简单的是去除对它们的引用,如果应用程序仍然会降低功能运行。对于引用内部资源,你可以简单的复制到您的项目并修改研究值指向你的本地副本。欢迎您来检查类和变量不是present在SDK,并确定您可以复制的,以及(重构他们进入一个新的包),你会在这种情况下更新您的项目来指代复制和重构类。

Can somebody could tell me if there is a simple way to build system apps for android ?

Since ICS 4.0.3 is out and open source, severals alternative launchers start rolling out like Trebuchet or Nova Launcher. It's obviously based on the system launcher and I wonder how they did this.

If you clone the launcher:

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

and try to open it in eclipse, it won't work because it use some classes and variable not present in the SDK, only present in the entire framework.

Is there a way to build or get it and add it into Eclipse (like android.jar for the SDK) and build the Launcher using eclipse ? If no, can somebody indicates me a good tutorial to do this usong command line ?

Thanks

解决方案

Is there a way to build or get it and add it into Eclipse (like android.jar for the SDK) and build the Launcher using eclipse ?

No.

If no, can somebody indicates me a good tutorial to do this usong command line ?

You cannot do that from the command line, either.

To convert an AOSP application into a standalone SDK application, you will need to find all the "classes and variable not present in the SDK" and remove/replace the references to them. The simplest is to remove the references to them, if the app will still run with reduced functionality. For references to internal resources, you can simply copy those to your project and modify the R values to point to your local copy. You are welcome to examine the "classes and variable not present in the SDK" and determine that you can copy those as well (refactoring them into a new package), in which case you would update your project to refer to the copied and refactored classes.