I cannot get the ULV ItemLongClick event fire?
The ULVimages is created in the designer.
My Code:
I have tried the solution here:
The ULVimages is created in the designer.
My Code:
B4X:
Sub ULVimages_ItemLongClick(ItemID As Long, Position As Int, ClickedPanel As Panel)
Log("longclick")
Dim Imagename As String
dbCursorIMG.Position = Position
Imagename = dbCursorIMG.GetString("picName")
ImageToDelete = Imagename
Dim result As Int
result = Msgbox2("OK to Delete this Picture " & ImageToDelete & "?", "eBuki Help", "OK", "", "NO",LoadBitmap (File.DirAssets, "eBuki-notification-logo.png"))
If result = DialogResponse.Positive Then
ToastMessageShow("Deleting Image " & ImageToDelete, False)
File.Delete(File.DirRootExternal & "/DCIM/Camera/", ImageToDelete)
LoadPictures
Else
pnlGallery.Visible = False
End If
End Sub
but still not working.