Java tutorial
//package com.java2s; import android.app.*; public class Main { public static int getWindowFeatures(Activity activity) { if (activity.getWindow() != null) ; return 0; } }