Lost
Lost

Reputation: 13595

How to open Android source code in Eclipse ADT

I am new to Android development and I have downloaded Source code of Cameraapp from Google web site from following locaiton:

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

I am trying to build and compile it into the Eclipse ADT environment. However when I open the folder using File> Import> Android> select existing project, I do not see the folder being able to be selected as a project.

I also noticed that there is no Android Manifest file inside this folder. How is this possible?

I read somewhere that camera app does not have its own Android Manifest file but it uses manifest file from the Gallery App. Which may be right. But my question is that how can I even compile this application?

Or would I have to compile the entire android application folder? Hopefully that is not the case.

Upvotes: 0

Views: 7176

Answers (1)

Aniket Thakur
Aniket Thakur

Reputation: 68935

If you do not have manifest file in the project then you have no option than to create an empty android project and copy the corresponding res/ and src/ file to your empty project.

Then modify your manifest file to define your activities and permissions. Then you can build and run your project in your ADT workspace.

Upvotes: 2

Related Questions