摘要:
/** *判断当前应用程序处于前台还是后台 * * @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()) { ComponentNam... 阅读全文
posted @ 2014-04-01 10:25
brave-sailor
阅读(317)
评论(0)
推荐(0)

浙公网安备 33010602011771号