ActivityCollector.java import android.app.Activity; import java.util.ArrayList; import java.util.List; //活动汇总管理 public class ActivityCollector { public static List<Activity> activities = new ArrayList<Activity>(); //添加活动 public static void add…
以关闭所有活动为例 public class ActivityCollector { public static List<Activity> activities = new ArrayList<Activity>(); public static void addActivity(Activity activity) { activities.add(activity); } public static void removeActivity(Activity activity…