Android Activity Finish finishAll()

Here you can find the source of finishAll()

Description

finish All

Declaration

public static final void finishAll() 

Method Source Code

//package com.java2s;

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

public class Main {
    private static ArrayList<Activity> actList = new ArrayList<Activity>();

    public static final void finishAll() {
        for (int i = actList.size() - 1; i >= 0; i--) {
            actList.get(i).finish();//w w w. j a  v  a 2  s  . com
        }
        actList.clear();
    }
}

Related

  1. endAppFailure(Activity activity, int id)