After building an Android project with Android Studio, what is the purpose of generating R.java as follows? package com.intelstar.venus; public final class R { public static final class attr { } public static final class drawable { public static final int icon=0x7f020000; } public static final class layout { public static final int main=0x7f030000; } public static final class string { public static final int app_name=0x7f040000; } }

Question:After building an Android project with Android Studio, what is the purpose of generating R.java as follows? package com.intelstar.venus; public final class R { public static final class attr { } public static final class drawable { public static final int icon=0x7f020000; } public static final class layout { public static final int main=0x7f030000; } public static final class string { public static final int app_name=0x7f040000; } }

1.R class is used for the linking of the resource into the source code

2.R class is the meta-codes for the building of the project

3.R class is the extension file that can be edited later for the source upgrading

4.R class is a meta class that the resources were built


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!