views:

273

answers:

2

I am adding MediaController to a VideoView, but it does not show up unless I tap the phone. The controller disappears after a while.

Is there a way I can have the MediaController show always?

Thanks Chris

A: 

As Default mediacontroller will hide in 3 seconds of user's inactivity. you can set the timeout seconds by

new media controller().show(50000);

check this link

Praveen Chandrasekaran
Note that calling show(0) will show the controller until hide() is called.
John in MD
A: 

The below code shows MediaController always:
VideoView videoView;
MediaController mc;

videoView.setMediaController(new MediaController(this)
{
public void hide()
{
System.out.println("HIDEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEHELLLOO");
mc.show();
}
});

Android_programmer_camera