String getFileName(String url) { Uri uri = Uri.parse(url); String fileName = uri.path.split("/").last; return fileName; }