Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 759
Dim Avatar asked Mar 20 '23 15:03

Dim


2 Answers

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.

like image 116
Jorgesys Avatar answered Apr 01 '23 15:04

Jorgesys


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

like image 24
Vamsi Pavan Mahesh Avatar answered Apr 01 '23 16:04

Vamsi Pavan Mahesh