I need to play mp4 video in my application, bat. I want to use intention. Is it possible?
private void startTrailer(){ Uri contentUri = Uri.parse("android.resource://" + pkgName + "/" +R.raw.v01_homem_ferro_3); Intent intent = new Intent( Intent.ACTION_VIEW ); intent.setDataAndType( contentUri, "video/mp4" ); context.startActivity( intent ); }
Exception: no actions were found to work with Intent.
source share