Android Question Getting file name of image loaded in an ImageView

Discussion in 'Android Questions' started by rleiman, Jul 25, 2015.

  1. rleiman

    rleiman Well-Known Member Licensed User

    Hi Everyone,

    I would like to get the file name of the image that's loaded in an ImageView.

    I have tried this but the coding is not correct.

    Can you show me the correct syntax to do it?

    It tells me "Types do not match"


    If ImageViewQuarterPastChimes.Bitmap = "light-on-icon.png" Then
    ' Do something.
    ' Do something else.
    End If
  2. Erel

    Erel Administrator Staff Member Licensed User

    The file name is not stored anywhere. You can use ImageView.Tag to store the file name.