Java tutorial
//package com.java2s; //License from project: Open Source License import android.app.Activity; import android.view.View; import android.view.ViewGroup; public class Main { public static View getActivitySetContentView(Activity activity) { return ((ViewGroup) activity.findViewById(android.R.id.content)).getChildAt(0); } }