I have been working on a simple android tutorial and while browsing through the project folders I found this R.java
file in gen
folder...
When I opened it seemed to me as a mess...
- first
R
itself is aclass
. - it had
multiple Inner classes
defined within egdrawable
,id
,layout
,etc. and that inner classes had lots of variables declared as below which were assigned with hex values
public static final int addr=0x7f080003; ... ... and much more
R is auto generated and acts as some pointer for other files
Questions for R.java
- what it is basically for
- how it works
- why
- values are in hex
- what role did it performs while the actual application is running