ERROR:The method getActivityManager() from the type MyApplication refers to the missing type ActivityManager
ActivityManager activityManager=(ActivityManager) this.getSystemService(Context.ACTIVITY_SERVICE) ;
List list = activityManager.getRunningAppProcesses();
不知道这两行代码是否符合你的需求
看不到你application中的代码