Cannot get android project into Eclipse
I have been developing my program on my desktop, and now want to continue to work on my program on my laptop.
I copied (via SFTP - using filezilla) the folder of the project (in the workspace) to the workspace on my laptop.
When I open eclipse, it did not show up.
I am developing for android 1.5.
I have copied over the android SDK from my desktop (both using 32-bit) and got the plugin for Eclipse. I also pointed Eclipse to the SDK
I tried to open existing project, but it will not show any projects to open.
How do I open my project?
EDIT:
"File" => "Import" => "General" => "Existing Projects into workspace" does not work. THe project is not recognized.
(source: site-hosts.net)
Asked by: Arnold356 | Posted: 20-01-2022
Answer 1
In this case you could ofcourse just open the .project file (which is just a plain xml file actually) and add the Android nature as child node to the nature tag:
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
After that re-import your project into eclipse.
Right click the project > Android Tools > Fix projects properties
Kind Regards
Tristan
Answered by: Connie684 | Posted: 21-02-2022Answer 2
Use File >> Import... >> General/Existing Projects into Workspace and follow the prompts.
Answered by: Lenny230 | Posted: 21-02-2022Answer 3
I think this can be solved by the following steps:-
1.Cut the folder which contains the project and paste it into any folder outside the work space folder.
2.Now try importing the project into work space by browsing to the folder where you pasted it into.
This should solve your problem.I am not sure why this works but i think it has got to do something with eclipse expecting the project to be imported to be outside the work space.
Answered by: Dexter476 | Posted: 21-02-2022Similar questions
First Android Test Project does not start
I'm creating my first android application but it does not start at all.
In my src > android.SampleApp I created a java file named Main.java with:
public class Main extends Activity {
// Will be connected with the buttons via XML
public void myClickHandler(View view) {
switch (view.getId()) {
case R.id.btn1:
((EditText) findViewById(R.id.txtContent)).setText("Button 1 Clicked");
...
android - How to fund an open source project?
Closed. This question is off-topic. It is not curre...
Build android project from command line
I would like to build and android project from command line on Linux. In the root directory of the project there are the following files and directories:
AndroidManifest.xml build.xml default.properties res/ src/
Can you provide a sample Makefile how to build this project?
android - digital compass problem
I am creating an augmented reality application and I noticed that the stored locations don't appear appear on the correct direction if I try to use the camera view (using layar or wikitude API).
The problem is that the digital compass doesn't show north correctly when you try to look at the known objects through the camera view. If align the phone with the ground (look at my shoes) the locations appear at the screen accord...
android - How to remove labels from a MapView?
I am trying to make a satellite view (via a MapView) without labels. How can I do this?
android - Custom title with image
i'm creating custom title for activity by disabling standard one and managing everything myself. I wonder if it's possible to replace/theme standart title to my needs.
I can customize size, background image, and text via themes by changing windowXYZStyle items.
The only thing i couldn't find - how i can add image instead of text.
I've tried requestWindowFeature(Window.FEATURE_CUSTOM_TITLE)
and ...
canvas - Android draw with blur
I need do draw on Android's Canvas using Blur effect,
it is a very simple feature,
I need to draw a circular area, which is blurred (the foreground) and the background transparent, I can do everything with manipulating the colour alpha to do it with custom transparency but I need it to be blurred instead of transparent..
any ideas?
layout - How to resize a android webview after adding data in it
In a layout (linear, vertical) hierarchy I've got several views and one of them is a WebView.
They all have same parameters:
android:layout_width="fill_parent"
android:layout_height="wrap_content"
For all views, the spacing between elements is correctly handled but for the Webview there is a lot of spaces after the displayed text inside.
I set the (HTML) text of the webview in the ...
How to find easily the source of an android class
I know I can access android source code from https://android.googlesource.com, but it's hard to select the right git repo if I only know the package and the name of an android class.
Isn't there a way to locate a file in https://android.googlesource.com?
camera - Android Intent Save Path
At the moment I am using two intents. One for voice-recording, another for the camera:
Intent photoIntent = new Intent("android.media.action.IMAGE_CAPTURE");
startActivityForResult(photoIntent, ACTIVITY_TAKE_PHOTO);
Intent voiceIntent = new Intent(MediaStore.Audio.Media.RECORD_SOUND_ACTION);
startActivityForResult(voiceIntent, ACTIVITY_RECORD_SOUND);
My aim is to put an Extra to each of t...
Android "hover" event in custom layout
I have a custom layout that I have written that basically just displays a bunch of ImageViews. I am handing onTouch events for all the ImageViews in my layout.
However, if a user touches one imageView and then drags over another ImageView, I would like to be able to handle that as well.
How would I go about capturing this behaviour?
android - What is the ideal place to cache images?
I am fetching a lot of thumbnails in my application from a remote server and lazy-loading these in a list view.
The image fetches run in a background AsynTask and when completed the fetched images are stored in a HashMap using SoftReferences.
This works just fine but when the images in the cache gets GC’d, the fetches have to be rerun.
I could have stored them on the SD card so there would be no...
How to create a tree view in Android?
There are no controls in Android that provide Tree-like View. There is an ExpandableList View which I suspect could be used to creating one.
Have you tried imlpementing such a control?
How would one implement such a control in Android?
Still can't find your answer? Check out these communities...
Android Google Support | Android Community | Android Community (Facebook) | Dev.io Android