I don't get any errors, but my the image doesn't change:
B4X:
Sub imgViewFlashMode_Click
Dim flashSetting As String
flashSetting = imgViewFlashMode.Tag
Select flashSetting
Case "1"
imgViewFlashMode.Bitmap = LoadBitmap(File.DirAssets,"FlashOn.png")
imgViewFlashMode.Tag = "2"
Case "2"
imgViewFlashMode.Bitmap = LoadBitmap(File.DirAssets,"FlashOff.png")
imgViewFlashMode.Tag = "3"
Case "3"
imgViewFlashMode.Bitmap = LoadBitmap(File.DirAssets,"FlashAuto.png")
imgViewFlashMode.Tag = "1"
End Select
End Sub
watching the app run in debug mode, I can see that the Tag gets updated, but the Bitmap for the ImageView doesn't seem to update.