the getExternalStorageDirectory() returns the path to sdcard0. But generally videos and audios are stored in the sdcard1, that too in folders. How can i get the path to these folders ?
您可以尝试像这样设置路径:
...("/sdcard1/folder/file");
Try this,
Make videoView,
VideoView videoView;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
videoView = (VideoView)findViewById(R.id.VideoView);
videoView.setVideoPath("/sdcard1/blonde_secretary.3gp");
videoView.start();
}
I hope this will solve your problem.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.