Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import java.util.ArrayList;
import android.app.Activity;

public class Main {
    private static ArrayList<Activity> activitys;

    public static void exitApplication() {

        if (null == activitys && 0 == activitys.size()) {
            return;
        }

        for (Activity a : activitys) {
            a.finish();
        }
    }
}