Why is it that after copying the file to the directory the listview is not updated with newer content which reside in that directory? Only when I exit the listview and reenter the view will it be refreshed?
Can someone tell me how I can solve this problem?
Copying of file function java file
You should add the newly copied files (VideoInfo objects) onto your ArchiveItems list, and then you can call listview.notifyDataSetChanged() to refresh the ListView, it seems you’re not doing it (but there’s too much code to look at maybe I’ve missed something)
or you can just reload the listview contents after your task has finished coping the new items (with loadVideoFiles() or whatever)