Hi botorgil
we provide the api to realize listen mode button, please check the following information.
MODE button
Press the MODE button, the system will issue an intent of "android.intent.action.ENG_MODE_SWITCH" with
A state parameter.
if (action.equals("android.intent.action.ENG_MODE_SWITCH")) {
boolean mIsEngMode = intent.getIntExtra("state", 1) == 1? true: false;
if(mIsEngMode){
Maintenance mode is open
}else{
Maintenance mode is off
}
}
The
system startup defaults to the maintenance mode closed state (state=0),
and then jumps between opening and closing with the button.
reply to me if you have any further questions.
