I am absolutely new to Android Development and am trying to create a small Video Player which can record videos and view recorded videos. I am viewing the list of videos recorded by the app in a ListView where for each video I show the title and length of the video.
I fetch a list of videos using:
File[] fileList = directory.listFiles(filter);
I have been able to fetch the name of the video using the following:
fileList[i].getName()
But I can't seem to figure out how to extract the length/ duration of the video. I could not find any relevant APIs which does so as well.
How can I get the duration of a 3GP video file in Java?