Beachdog
Beachdog

Reputation: 174

Create folder in Android View

I want create a folder for java source code that is visible in the "Android" view. This is not an asset or layout or res folder. Just a simple folder that becomes visible and accessible.

I know how to create a new folder but it's only visible in the "Project" view. I never see it in the "Android" view.

enter image description here

Upvotes: 0

Views: 72

Answers (1)

Adam
Adam

Reputation: 424

In java, folders are called packages. You can create a folder for your source code in the java folder by right clicking it and selecting new>Package.

It is important to note that classes in different packages can only access public members.

Screenshot

Upvotes: 1

Related Questions