Hi,
I've got an activity with a listview that shows a list of files. On the _longclick event I pop up a messagebox to confirm deletion of the file. If I respond yes, it executes the File.Delete command on the appropriate file and removes the item from the listview. If I wait a few seconds then repeat the process again, it works.
However, if I longclick on a file, release, select yes, then immediately longclick, release, yes, longclick, release, yes etc then back out of the activity, I would expect the files to have been deleted. They haven't though (sometimes one or two of the files might be gone, sometimes none at all). The code is going through the motions but because I am deleting one file after another in quick succession, it really doesn't like it.
Can you shed some light on this?
Richard
I've got an activity with a listview that shows a list of files. On the _longclick event I pop up a messagebox to confirm deletion of the file. If I respond yes, it executes the File.Delete command on the appropriate file and removes the item from the listview. If I wait a few seconds then repeat the process again, it works.
However, if I longclick on a file, release, select yes, then immediately longclick, release, yes, longclick, release, yes etc then back out of the activity, I would expect the files to have been deleted. They haven't though (sometimes one or two of the files might be gone, sometimes none at all). The code is going through the motions but because I am deleting one file after another in quick succession, it really doesn't like it.
Can you shed some light on this?
Richard