Android examples for User Interface:StatusBar
has Status Bar
//package com.java2s; import android.app.Activity; import android.view.WindowManager; public class Main { public static boolean hasStatusBar(Activity activity) { WindowManager.LayoutParams attrs = activity.getWindow() .getAttributes();// w ww.j a va 2s . co m if ((attrs.flags & WindowManager.LayoutParams.FLAG_FULLSCREEN) == WindowManager.LayoutParams.FLAG_FULLSCREEN) { return false; } else { return true; } } }