-2

Whenever I create a new android activity in eclipse using Mac the activity is created under an example folder. Like src.com.example. What I would like to do is create an activity under a pre-existing folder. like src.com.already_created_folder. How would I do this?

Thanks

jacobduron
  • 431
  • 9
  • 20

1 Answers1

-2

You can just copy the source files (by selecting them, and hitting command_c, then paste them in your other created folder.

A better alternative would probably be to just rename the folder to the name you would like. To do this:

  1. right click on the folder you are wanting to rename
  2. select 'refactor'
  3. select 'rename'
Booger
  • 18,579
  • 7
  • 55
  • 72
  • I've tried just moving the activity to another folder but when I do this it does not recognize R anymore like when I use findViewById(R.id.some_id); there is an error for R. – jacobduron Mar 28 '13 at 21:13
  • Then use the second method I recommended (the 'Refactor' menu). And then you should do a 'clean' compile. – Booger Mar 28 '13 at 21:16