I'm developing a video converter in android studio. I'm able to convert file successfully and can play the resulting file with:
File file = new File(filepath);
Uri path = Uri.fromFile(file);
Intent Openintent = new Intent(Intent.ACTION_VIEW);
Openintent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
Openintent.setDataAndType(path, "audio/mp3");
try {
startActivity(Openintent);
}
catch (ActivityNotFoundException e) {
}
But I can't find any code to open the resulting folder and show converted file marked. Like we have in windows Locate file in folder.
from Show converted file in activity
No comments:
Post a Comment