台电设备对接
This commit is contained in:
@@ -456,6 +456,10 @@ public class MessageReceiver extends XGPushBaseReceiver {
|
||||
private static final String JIGUANG_REINSTALL_APP = "62";
|
||||
//显示所有的admin应用
|
||||
private static final String JIGUANG_ADMIN_APP = "63";
|
||||
/*投屏开关*/
|
||||
private static final String SCRENN_SHARED = "74";
|
||||
/**/
|
||||
private static final String HOT_SPOT = "75";
|
||||
|
||||
private void processCustomMessage(Context context, XGPushTextMessage message) {
|
||||
if (context == null || message == null) {
|
||||
@@ -682,6 +686,7 @@ public class MessageReceiver extends XGPushBaseReceiver {
|
||||
setZenMode(context, extras);
|
||||
break;
|
||||
case JIGUANG_LOCATION:
|
||||
ToastUtil.debugShow("收到推送消息: 定位设置");
|
||||
break;
|
||||
case JIGUANG_CHARGING_REMINDER:
|
||||
break;
|
||||
@@ -723,6 +728,12 @@ public class MessageReceiver extends XGPushBaseReceiver {
|
||||
case JIGUANG_ADMIN_APP:
|
||||
setAdminApp(context, extras);
|
||||
break;
|
||||
case SCRENN_SHARED:
|
||||
ToastUtil.debugShow("收到推送消息: 投屏开关");
|
||||
break;
|
||||
case HOT_SPOT:
|
||||
ToastUtil.debugShow("收到推送消息: 热点开关");
|
||||
break;
|
||||
default:
|
||||
}
|
||||
}
|
||||
@@ -858,7 +869,7 @@ public class MessageReceiver extends XGPushBaseReceiver {
|
||||
mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();//获取默认蓝牙适配器
|
||||
}
|
||||
JSONObject extra = JSON.parseObject(jsonString);
|
||||
int is_bluetooth = changeNum(extra.getIntValue("setting_bluetooth"));
|
||||
int is_bluetooth = changeNum(extra.getIntValue("setting_bht"));
|
||||
Log.e(TAG, "aole_bht_forbid_on: " + is_bluetooth);
|
||||
try {
|
||||
//写入系统数据库
|
||||
|
||||
Reference in New Issue
Block a user