[code]判断程序是否在前台运行
摘要:
public boolean isTopActivity(Context context, String packageName) { System.out.println("packageName:" + packageName); ActivityManager activityManager = (ActivityManager) context .getSystemService(Context.ACTIVITY_SERVICE); List<RunningTaskInfo> tasksInfo = activityManager.getRunningT 阅读全文
posted @ 2012-08-17 17:03 亭子 阅读(249) 评论(0) 推荐(0) 编辑