Android:video as splash screen

Sameer Z. picture Sameer Z. · Mar 29, 2011 · Viewed 12.2k times · Source

I want to play the video as splash screen.I have implement the play video but it show the default control like play,pause and seek etc.I want to remove the so that the after video finish I need to call the new activity.

 MediaController mc = new MediaController(this);
    getWindow().setFormat(PixelFormat.TRANSLUCENT);
    video.setMediaController(mc);
    video.setVideoURI(uri);
    video.setOnCompletionListener(this);
    video.setOnTouchListener(new OnTouchListener() {

            public boolean onTouch(View arg0, MotionEvent arg1) {
                Toast.makeText(getApplicationContext(), "ontouch",Toast.LENGTH_LONG).show();
                return true;
            }
        }) ;

and the main.xml

Thank in advance.

Answer

Sameer Z. picture Sameer Z. · Mar 30, 2011

The answer was too simple remove the line

 video.setMediaController(mc);

because i did not want to use the control.

Thank you