Java tutorial
//package com.java2s; import android.app.Activity; import android.os.Build; public class Main { public static void setupActionBar(final Activity activity) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { // Show the Up button in the action bar. activity.getActionBar().setDisplayHomeAsUpEnabled(true); } } }