Here you can find the source of setDisplayHomeAsUpEnabled(Activity a, boolean enabled)
public static void setDisplayHomeAsUpEnabled(Activity a, boolean enabled)
//package com.java2s; //License from project: Open Source License import android.app.ActionBar; import android.app.Activity; public class Main { public static void setDisplayHomeAsUpEnabled(Activity a, boolean enabled) { a.getActionBar().setDisplayHomeAsUpEnabled(enabled); }//w w w . ja v a2 s. com public static ActionBar getActionBar(Activity act) { return act.getActionBar(); } }