class HomeKeyBroadCastReceiver extends BroadcastReceiver{
static final String SYSTEM_REASON = "reason";
static final String SYSTEM_HOME_KEY = "homekey";
static final String SYSTEM_RENCENT_APPS = "rencentkeys";//长按home键
@Override
public void onReceive(Context context, Intent intent) {
String action = intent.getAction();
if(action.equals(Intent.ACTION_CLOSE_SYSTEM_DIALOGS)){
String reason = intent.getStringExtra(SYSTEM_REASON);
if(reason != null){}
if(reason.equals(SYSTEM_HOME_KEY)){
if (mExtraUI != null) {
QLog.d(TAG, "HomeKeyBroadCastReceiver");
VideoConstants.FLAG_VIDEO_RUNNING_BACKGROUND = true;
}
}
}
}
}
static final String SYSTEM_REASON = "reason";
static final String SYSTEM_HOME_KEY = "homekey";
static final String SYSTEM_RENCENT_APPS = "rencentkeys";//长按home键
@Override
public void onReceive(Context context, Intent intent) {
String action = intent.getAction();
if(action.equals(Intent.ACTION_CLOSE_SYSTEM_DIALOGS)){
String reason = intent.getStringExtra(SYSTEM_REASON);
if(reason != null){}
if(reason.equals(SYSTEM_HOME_KEY)){
if (mExtraUI != null) {
QLog.d(TAG, "HomeKeyBroadCastReceiver");
VideoConstants.FLAG_VIDEO_RUNNING_BACKGROUND = true;
}
}
}
}
}