Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.app.ActionBar;
import android.app.Activity;

public class Main {
    public static void setupActionBarDisplayUp(Activity activity) {
        setupActionBar(activity);
        activity.getActionBar().setDisplayHomeAsUpEnabled(true);
    }

    public static void setupActionBar(Activity activity) {
        ActionBar actionBar = activity.getActionBar();
        actionBar.setDisplayUseLogoEnabled(true);
    }
}