摘要: /** *判断当前应用程序处于前台还是后台 * * @param context * @return */public static boolean isApplicationBroughtToBackground(final Context context) {ActivityManager am = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);List tasks = am.getRunningTasks(1);if (!tasks.isEmpty()) {ComponentName topAct 阅读全文
posted @ 2013-07-13 21:48 glaivelee 阅读(7675) 评论(0) 推荐(0) 编辑