Java tutorial
//package com.java2s; import android.app.Activity; import android.view.View; public class Main { public static View findActionBarContainer(Activity activity) { int id = activity.getResources().getIdentifier("action_bar_container", "id", "android"); return activity.findViewById(id); } }