Java tutorial
//package com.java2s; import android.app.Activity; import android.view.WindowManager; public class Main { public static void quitFullScreen(Activity act) { final WindowManager.LayoutParams attrs = act.getWindow().getAttributes(); attrs.flags &= (~WindowManager.LayoutParams.FLAG_FULLSCREEN); act.getWindow().setAttributes(attrs); act.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS); } }