Where can I get the Android camera application source code?

前端 未结 4 440
隐瞒了意图╮
隐瞒了意图╮ 2020-12-13 00:22

I\'m referring to the camera application that is already installed on my G1, not the camera API source code.

How do I get the source code?

相关标签:
4条回答
  • 2020-12-13 00:22

    Recently I looked for Contact stock app in android and I hit this thread. I was able to find the solution.

    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/

    In browser search for packages/apps/ to get the corresponding apps repository name.

    0 讨论(0)
  • 2020-12-13 00:28

    You will need to clone the project from the Android repository using git.

    The project URL is:

    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.

    0 讨论(0)
  • 2020-12-13 00:31

    These links may be of help to you.

    Native code:

    • https://code.google.com/p/srv1console/

    Customized code:

    • 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

    0 讨论(0)
  • 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.

    You'll need a git client, and a lot of time to download the entire source code.

    If you don't want the entire current version of Android, here are some alternatives:

    • Online (browsable) snapshot of Android 2.2
    • Google code search (will be discontinued in 2012)

    Searching through these public repos should give you enough code to work with.

    0 讨论(0)
提交回复
热议问题