| | |
| | | |
| | | import android.Manifest; |
| | | import android.content.IntentFilter; |
| | | import android.content.UriPermission; |
| | | import android.content.pm.PackageManager; |
| | | import android.os.Bundle; |
| | | import android.os.Process; |
| | |
| | | //监听网络状态变化 |
| | | this.networkMonitoring(); |
| | | |
| | | // HdlOtaLogic.getInstance().startLocalService(new ServiceConnection() { |
| | | // @Override |
| | | // public void onServiceConnected(ComponentName name, IBinder service) { |
| | | // |
| | | // } |
| | | // |
| | | // @Override |
| | | // public void onServiceDisconnected(ComponentName name) { |
| | | // |
| | | // } |
| | | // }); |
| | | |
| | | } |
| | | |
| | |
| | | return; |
| | | } |
| | | int index = -1; |
| | | List<GatewayBean> list = HdlDeviceLogic.getInstance().getCurrentHomeGatewayList(); |
| | | List<GatewayBean> list = HdlDeviceLogic.getInstance().getCurrentHomeGatewayList(UserConfigManage.getInstance().getHomeId()); |
| | | for (int i = 0; i < list.size(); i++) { |
| | | GatewayBean gatewayBean = list.get(i); |
| | | if (gatewayBean.getGatewayId().equals(topics[2])) { |