音频播放器控件消失

时间:2011-06-03 05:57:19

标签: android show mediacontroller

我正在使用mediaController播放音频文件。一切都运转良好,只有媒体控制器在几秒后隐藏,但我想展示它然后该怎么办?

setContentView(R.layout.playingactivity);
mPath = (EditText) findViewById(R.id.path);
mPath.setText(GlobalVariable.getstrEmail());
mVideoView = (VideoView) findViewById(R.id.surface_view);
Uri uri = Uri.parse("/sdcard/download/test.mp3");

mediaController = new MediaController(this);
mediaController.setAnchorView(mVideoView);
mVideoView.setMediaController(mediaController);
mVideoView.setVideoURI(uri);
mVideoView.start();

0 个答案:

没有答案
相关问题