Android resources
See Accessing Resources in Code
If all you require is the ability to read raw data (such as a video or audio file), then save the file in the res/raw/ directory and read a stream of bytes using openRawResource().
get an instance of Resources with Context.getResources()
never modify the R.java file by hand—it is generated by the aapt tool when your project is compiled.
ViewGroup = layout
View = widge: button, checkbox, etc.
If all you require is the ability to read raw data (such as a video or audio file), then save the file in the res/raw/ directory and read a stream of bytes using openRawResource().
get an instance of Resources with Context.getResources()
never modify the R.java file by hand—it is generated by the aapt tool when your project is compiled.
ViewGroup = layout
View = widge: button, checkbox, etc.
Comments