What is r.java in android? What does it contain?
It will contains actual resources used in a given project.
It is automatic generated file, which have pointers to all resources used in the application.
It is the file which contains all resources pointers. this file has to be created by programmer.
It contains some intermediate stuff used by compiler, not related with resources.
all resources located in res folder are mostly .xml files, which will not be understood by java compiler. So aapt (android application packaging) tool will convert all those xml files and other resources into a java file, which has identification numbers(pointers) to all those resources. if we want to access any resource from the code, then we can access through this R.java file. full form is Resource.java file.
Back To Top