What is the concept behind R.java?
In android R.java is used to provide access to resources defined in XML files. To access the resource we need to invoke findViewById() method passing in the id of the resource to be fetched. This is similar to Spring where beans are defined in a XML context and are fetched by using application context. context.getBean("beanId") This provides loose coupling since the beans are defined externally and could be changed without making modifications to the code. This has me confused. Though what Android does looks similar to spring, what advantage does it offer? What is the point of having an