Java tutorial
//package com.java2s; /** * 09/12/2009 1:12:39<br> * Copyright (C) 2009 YAH Group<br> * <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/2.5/ar/"><img * alt="Creative Commons License" style="border-width:0" * src="http://i.creativecommons.org/l/by-nc-sa/2.5/ar/88x31.png" /></a><br /> * <span xmlns:dc="http://purl.org/dc/elements/1.1/" property="dc:title">YAH Tasks</span> by <span * xmlns:cc="http://creativecommons.org/ns#" property="cc:attributionName">YAH Group</span> is * licensed under a <a rel="license" * href="http://creativecommons.org/licenses/by-nc-sa/2.5/ar/">Creative Commons * Attribution-Noncommercial-Share Alike 2.5 Argentina License</a>. */ import android.app.Activity; import android.view.View; public class Main { public static View getContentViewFrom(Activity activity) { return activity.getWindow().getDecorView(); } }