Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.app.Activity;

public class Main {
    public static void DefinirTheme(Activity activity, String titulo) {
        if (android.os.Build.VERSION.SDK_INT < 11) {
            activity.setTheme(android.R.style.Theme_Light);
            activity.setTitle(titulo);
        } else {
            activity.setTheme(android.R.style.Theme_Holo_Light);

        }

    }
}