How to Create an Android App Tutorial #5: How to Add and Update ImageViews

#1 Android Design Book:

In the fifth Android app development video tutorial, I show you how we can add an ImageView to our layout xml to give users some feedback on whether they got a right or wrong answer. In doing so, we update our code to get a reference to that ImageView and then when evaluating our answer, we use the setImageResource method from the ImageView class to set our reference.

As part of this tutorial, we also cover the difference between px and dpi used in Android and why it is important to support multiple devices.