I'm referring to the camera application that is already installed on my G1, not the camera API source code.
我指的是已经安装在G1上的camera应用程序,而不是camera API源代码。
How do I get the source code?
如何获得源代码?
4 个解决方案
#1
66
You will need to clone the project from the Android repository using git
.
您需要使用git从Android存储库克隆项目。
The project URL is:
项目的网址是:
https://android.googlesource.com/platform/packages/apps/Camera.git
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.
源代码将在目录照相机中。
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的文档部分。
#2
10
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版本,这里有一些选择:
- Online (browsable) snapshot of Android 2.2
- Android 2.2的在线(可浏览)快照
- Google code search (will be discontinued in 2012)
- 谷歌代码搜索(将于2012年停止)
Searching through these public repos should give you enough code to work with.
在这些公共的repos中进行搜索,应该可以为您提供足够的代码。
#3
1
These links may be of help to you.
这些链接可能对你有帮助。
Native code:
本机代码:
- https://code.google.com/p/srv1console/
- https://code.google.com/p/srv1console/
Customized code:
自定义代码:
-
http://www.vogella.com/articles/AndroidCamera/article.htm
http://www.vogella.com/articles/AndroidCamera/article.htm
-
http://android.bigresource.com/Android-change-existing-apps-code-of-G1-calendar-and-Camera-code-nA0c0sK59.html
-
http://developer.android.com/training/camera/cameradirect.html
http://developer.android.com/training/camera/cameradirect.html
#4
0
Recently I looked for Contact stock app in android and I hit this thread. I was able to find the solution.
最近我在android上寻找联系人股票应用,我点击了这个线程。我找到了解决方案。
git clone https://android.googlesource.com/platform/packages/apps/Camera
git克隆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.
在浏览器中搜索包/应用程序/以获得相应的应用程序库名称。
#1
66
You will need to clone the project from the Android repository using git
.
您需要使用git从Android存储库克隆项目。
The project URL is:
项目的网址是:
https://android.googlesource.com/platform/packages/apps/Camera.git
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.
源代码将在目录照相机中。
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的文档部分。
#2
10
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版本,这里有一些选择:
- Online (browsable) snapshot of Android 2.2
- Android 2.2的在线(可浏览)快照
- Google code search (will be discontinued in 2012)
- 谷歌代码搜索(将于2012年停止)
Searching through these public repos should give you enough code to work with.
在这些公共的repos中进行搜索,应该可以为您提供足够的代码。
#3
1
These links may be of help to you.
这些链接可能对你有帮助。
Native code:
本机代码:
- https://code.google.com/p/srv1console/
- https://code.google.com/p/srv1console/
Customized code:
自定义代码:
-
http://www.vogella.com/articles/AndroidCamera/article.htm
http://www.vogella.com/articles/AndroidCamera/article.htm
-
http://android.bigresource.com/Android-change-existing-apps-code-of-G1-calendar-and-Camera-code-nA0c0sK59.html
-
http://developer.android.com/training/camera/cameradirect.html
http://developer.android.com/training/camera/cameradirect.html
#4
0
Recently I looked for Contact stock app in android and I hit this thread. I was able to find the solution.
最近我在android上寻找联系人股票应用,我点击了这个线程。我找到了解决方案。
git clone https://android.googlesource.com/platform/packages/apps/Camera
git克隆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.
在浏览器中搜索包/应用程序/以获得相应的应用程序库名称。