android5.0+前后判断应用是否在后台运行区别
android5.0+前后判断应用是否在后台运行区别
5.0之前我们判断的方法
public static boolean isApplicationInBackground(Context context) {
ActivityManager am = (ActivityManager) context.getSystemService(Context.ACTIVITY_...
原创
2018-09-19 10:24:16 ·
723 阅读 ·
0 评论