How to play video in fullscreen in android?

By | March 15, 2012

Hello all……

Someone has been asking me how to play a video in android in fullscreen. Then I made some surfing in the internet and found a solution.

You can check out how to play a video in android here and to check whether the video has completed playing here.
The only change was to do in the xml.

This is the xml code of the layout containing the videoview.

<?xml version="1.0" encoding="utf-8"?>
 <RelativeLayout xmlns:android=""
           android:layout_height="fill_parent" >
   <VideoView android:id="@+id/myvideoview"

Please leave your comments on this post.

You can download the complete source code here. Please include a video in res/raw folder and try.

Website Pin Facebook Twitter Myspace Friendfeed Technorati Digg Google StumbleUpon Premium Responsive

Leave a Reply

Your email address will not be published. Required fields are marked *