minucha
12/29/2019, 8:51 PMHistoryActivity. My video model has name, authorName, authorImageUrl, videoDescription and every time I download a video, I store the video info in the SharedPreference so that I can list all the videos with their description in the HistoryActivity. I am using video’s name property as an ID to connect the video with its description I stored in the SharedPreference. However, when user changes the name of the video using other apps, I am losing the ID.
So the question: Is there any way that I can use as an ID for video file or any other file type?Adam Powell
12/29/2019, 9:09 PMAdam Powell
12/29/2019, 9:10 PMUUID and store it alongside the name and other metadata, then always refer to a video by its uuid, not by its name. The uuid will never change for a given downloaded file.minucha
12/29/2019, 9:18 PM