Pregunta

I'm using Android IDE to develop, and I need to move source files from one folder to another, but I can't seem to find a way to actually MOVE a file (even copy and delete in two steps would work).

Am I blind? This seems like a required feature of any IDE, and given how good Android IDE is, I find it shocking if this feature was overlooked.

NOTE: This question is NOT about Android Studio!

¿Fue útil?

Solución

You are right. The (essential) feature to move files around is missing from Android IDE.

Workaround:

You can manipulate the files in any explorer. Your project files are placed in /sdcard/AppProjects/YourProject.

You can count on the fact that such a feature will not be missing for long.

Otros consejos

I would download a file manager (I like root browser) and switch between the two apps as a temporary work around. That app is updated fairly often so I would also just shoot the developers a feature request. I am sure they would consider it essential as you do.

PREFACE: Use a file manager; this hack renames Java classes.

Rename, with the relative path as the new name.
Let's say I wanted to move file from /sdcard/A to /sdcard/B. I'd long-press on file, chose rename, and type the new destination as ../B/file.

This doesn't seem like deliberate feature, rather a side effect of blindly passing path strings to the underlying framework. Can't say I don't like it, although, I'd recommend using a proper file explorer app.

Right-mouse click on any element (folder, Class, or XML file) the click = 'cut'.

Right-mouse click on the folder where you would like the files to be moved to, and then select 'paste'.

This works the same as moving files in the file-system.

For the most part (depending on where you are moving to and from) you can just drag-and-drop your files to move them as well.

I often achieve this goal by simply drag and drop. And the IDE also takes care of all the refactoring stuff.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top