I wonder if assets
and res
are the same in Android, is that sometimes I find examples that refer to resources in assets and others in res, is messing me up a bit.
I wonder if assets
and res
are the same in Android, is that sometimes I find examples that refer to resources in assets and others in res, is messing me up a bit.
These would be the most notable differences between /res
and /assets
:
/assets
/res
. Example:
assets
|__Directorio
|__miBasedeDato
|__ArchivosAndroid
/res
/assets
is that these resources are accessed through class R, which is generated automatically by the project and contains ids that refer to each resource within /res
. /res
, only files with names containing lowercase characters from "a" to "z" and numeric characters from 0 to 9 are allowed. By experience, in Res are all the resources of Android that you can use or create them yourself, for example, animations, styles, extra layouts, etc. Already in the folder assets
would go all the extra resources that you can use and that are not Android, for example sources and multimedia files. In my case, there I have placed videos, ogg files, sources, etc. Even files html
and css
.