Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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);
        }
    }
}