Solace
Solace

Reputation: 9010

What is the relation between the R class in Android framework, and the R.java file in our projects?

What kind of class is the R class in Android?

I am not talking about the R.java file in your project which contains the id's of the application resource objects.

I am talking about this class?

Does this R class have any relation with the R.java file mentioned above?

Upvotes: 0

Views: 112

Answers (2)

IntelliJ Amiya
IntelliJ Amiya

Reputation: 75788

R.java which is Automatically System generated file it contains the id of each resources used in Application which is used to make refrence. R.class contains IDs for all your android resources.

Upvotes: 1

Phantômaxx
Phantômaxx

Reputation: 38098

Android R is system wide.
Your app's R is private to your app.

Upvotes: 4

Related Questions