i try to play a video in a VideoView, therefore i used the following code:
PlayVideo();
}
private void PlayVideo(){
String urlPath = "android.resource://love.dominikhartlug.clate/"+R.raw.vido;
Uri uri = Uri.parse(urlPath);
vw.setVideoURI(uri);
vw.start();
}
}
i return always the following error message:
.VideoView.setVideoURI(android.net.Uri)' on a null object reference
if i list all files from my raw folder, the file vido.mp4 does exist.
does anyone have a solution?