My app package name is com.example.app.a
, I try to play the mp4 resource from application b com.example.app.b
like this:
VideoView videoView = (VideoView) findViewById(R.id.picker);
videoView.setVideoURI(Uri.parse("android.resource://com.example.app.b/raw/keyboard_anim_theme"));
videoView.requestFocus();
videoView.start();
but the Can't play this video
dialog shows. How can I play the mp4 in another application. Thanks a lot.