简体   繁体   English

我在哪里可以获得Android相机应用程序源代码?

[英]Where can I get the Android camera application source code?

I'm referring to the camera application that is already installed on my G1, not the camera API source code. 我指的是我的G1上已经安装的相机应用程序,而不是相机API源代码。

How do I get the source code? 我如何获得源代码?

You will need to clone the project from the Android repository using git . 您需要使用git从Android存储库克隆项目。

The project URL is: 项目URL是:

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

You can clone the project like this: 您可以像这样克隆项目:

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

The source code will be in the directory Camera . 源代码将位于Camera目录中。

This link will tell you how to download all the sources. 此链接将告诉您如何下载所有来源。

If you need help with using git then checkout git's documentation section . 如果您需要有关使用git的帮助,请查看git的文档部分

Google has moved hosting to their own servers, so the process has changed. 谷歌已将托管服务转移到自己的服务器上,因此流程已发生变化。 You can no longer browse the kernel source online, but the Android source code can be downloaded from http://source.android.com/source/downloading.html . 您无法再在线浏览内核源代码,但可以从http://source.android.com/source/downloading.html下载Android源代码。

You'll need a git client, and a lot of time to download the entire source code. 您需要一个git客户端,并且需要大量时间来下载整个源代码。

If you don't want the entire current version of Android, here are some alternatives: 如果你不想要整个当前版本的Android,这里有一些选择:

Searching through these public repos should give you enough code to work with. 搜索这些公共存储库应该可以为您提供足够的代码。

Recently I looked for Contact stock app in android and I hit this thread. 最近我在android中查找了联系股票应用程序,我点击了这个帖子。 I was able to find the solution. 我找到了解决方案。

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

is the way to clone camera app. 是克隆相机应用程序的方法。

All apps are listed in page 所有应用都列在页面中

https://android.googlesource.com/ https://android.googlesource.com/

In browser search for packages/apps/ to get the corresponding apps repository name. 在浏览器中搜索packages / apps /以获取相应的应用程序存储库名称。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM