Amos
Amos

Reputation: 1351

adding subfolders to java folder in android studio 1.0.2

Inside the java folder I have different java classes: one main activity, several fragments and others are utilities and asynctasks.

How can I re-order them inside sub folders inside the java folder?

Upvotes: 3

Views: 4196

Answers (3)

Pulkit
Pulkit

Reputation: 349

Can't believe there is no straightforward answer on the internet even though it is pretty simple:

FOR ANDROID STUDIO

  1. Right click on your main package ("com.example.android.myapp")
  2. Select New -> Package
  3. Enter the name of the 'folder' you want to create and click OK. If your package name is "com.example.android.myapp," then enter "com.example.android.myapp.folderName" as the folder name.

There you have it - A new 'folder' inside your main src folder.

Upvotes: 3

Hemanth
Hemanth

Reputation: 2737

You can create packages in your project to maintain java classes.

enter image description here

Upvotes: 1

Menachem Hornbacher
Menachem Hornbacher

Reputation: 2165

Make new packages, and import them as needed. Or right click and select "show in explorer" and make your folders there.

Upvotes: 0

Related Questions