I'm trying to open a video that I've stored in the app on an external player. But I do not know how to do it.
My video is in the folder res/raw. This link is for testing.
public void openVideo(View view) {
String vidAddress = "https://archive.org/download/ksnn_compilation_master_the_internet/ksnn_compilation_master_the_internet_512kb.mp4";
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(vidAddress));
intent.setDataAndType(Uri.parse(vidAddress), "video/*");
startActivity(intent);
}