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.
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.
I guess you should create a new Android application project , and copy paste the all the res,source and manifest will be only solution
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With