Dim
Dim

Reputation: 4837

Import sample project into eclipse

I know it may be a rookie question but I haven't done this before. How do I import android sample project like: https://developer.android.com/training/location/retrieve-current.html to eclipse that have only res, src and manifest. I wish to know the right way and not copy - paste, also import project does not work here.

Upvotes: 4

Views: 1226

Answers (2)

Jorgesys
Jorgesys

Reputation: 126563

This is very easy:

Unzip the code, now you have the folder "LocationUpdates" containing the Manifest.xml file, /src and /res folders.

In Eclipse Go to: File > import > select Android Folder, Existing Android Code Into Workspace > Browse to the directory where your project to import is located, and check the option Copy projects into workspace > Next > Change if you want the project name in New Project Name > Finish

Refresh F5 and Build your project

In other situations where we only have /res and /src folder, the only way is creating a new project.

Upvotes: 4

Vamsi Pavan Mahesh
Vamsi Pavan Mahesh

Reputation: 250

I guess you should create a new Android application project , and copy paste the all the res,source and manifest will be only solution

Upvotes: 3

Related Questions