jim
jim

Reputation: 1025

Android Studio create A folder in R.raw

I want to create folder in R.raw to classify my media source.

But when I try to read the folder in R, I can't found the folder.

 R.raw.folderName

How can I solve the problem?

Upvotes: 2

Views: 1065

Answers (1)

Niki van Stein
Niki van Stein

Reputation: 10724

You can not add folders to the raw folder or any of the folders inside the res folder.

Android supports only a linear list of files within the predefined folders under res. The asset folder though, can have an arbitrary hyarchie of folders because the asset folder is not considered as resources.

Upvotes: 1

Related Questions