Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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