3020 Views
For find extension from a given path you can use any one from given solution:
Method 1: Get extension from string path
String path = "/storage/emulated/0/WhatsApp/Media/WhatsApp Video/VID-20190125-WA0010.mp4";
String extension = path.substring(path.lastIndexOf("."));
Method ...
Sheetal Kumar
Jan 26, 2019