if (activity.getWindow().getDecorView().getVisibility() == View.VISIBLE) { //Activity 可见 }else { //Activity 不可见 } Android 判断Activity是否可见 无