Java tutorial
//package com.java2s; //License from project: Open Source License import android.app.ActionBar; import android.app.Activity; public class Main { /** * Setup parent navigation * @param activity to setup for */ public static void setupParent(Activity activity) { ActionBar bar = activity.getActionBar(); if (bar != null) { bar.setDisplayHomeAsUpEnabled(true); } } }