android - How to play a video file from SD card -


I want to play a video file on the Android emulator which I have deposited in the SD card. This is my code .. Public class enhances AndroidVideoViewActivity activity {see private video videoView = null; Private string path = "mnt / sdcard / bmxskills.3gp"; Private Media Player Media Player = Faucet; Private Media Controller Media Controller = Faucet; Override public null on @reate (bundle saved instainstate) {super.naught (savedinstenstate); SetContentView (R.layout.main); Find Video Video Video = (Watch Video) Find VVBIID (R.DDVideoView); VideoView.setVideoPath ("mnt / sdcard / bmxskills.3gp"); VideoView.setMediaController (mediaController); VideoView.requestFocus (); VideoView.start (); }}

But when I run on the emulator it shows a blank screen. help please. I've added the necessary permissions for internet and external storage.

please check

OR

Change videoView.setVideoPath ("Mnt / sdcard / bmxskills.3gp");

with videoView.setVideoPath ("/ sdcard / bmxskills.3gp");

Comments