What is the purpose of setImageResource() in Android Studio? : If an image is already defined in xml and, when I run the app, it pops of on the screen of the emulator without any problem, what's the purpose of setImageResource() method in Java code?
