Android-Video View in Fullscreen Android-Video View in Fullscreen android android

Android-Video View in Fullscreen


No need of code to play video in full screen mode

Apply the following layout format over the xml containing the videoview it will for sure will play the video in full screen mode. as it is running mine :) Hope it helps

 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"           android:layout_width="fill_parent"           android:layout_height="fill_parent" >   <VideoView android:id="@+id/myvideoview"             android:layout_width="fill_parent"             android:layout_alignParentRight="true"             android:layout_alignParentLeft="true"             android:layout_alignParentTop="true"             android:layout_alignParentBottom="true"             android:layout_height="fill_parent">    </VideoView> </RelativeLayout>


when you click an menu item. you have to start a New Activity. for that Activity you have to set the theme attribute in the Manifest. set this value that is

android:theme="@android:style/Theme.NoTitleBar.Fullscreen"

thats it.


Perhaps it's because you have to add following code:

requestWindowFeature(Window.FEATURE_NO_TITLE);getWindow().setFlags(    WindowManager.LayoutParams.FLAG_FULLSCREEN,       WindowManager.LayoutParams.FLAG_FULLSCREEN);

before setContentView(your_content_view) to get rid of app title bar. I know its a very late reply but somebody might find it useful.