Merge branch 'master' into wxr-sdk-test
| | |
| | | <component name="DesignSurface"> |
| | | <option name="filePathToZoomLevelMap"> |
| | | <map> |
| | | <entry key="../../../../../layout/custom_preview.xml" value="0.33645833333333336" /> |
| | | <entry key="DeviceAddModule/src/main/res/layout/activity_device_add.xml" value="0.16666666666666666" /> |
| | | <entry key="app/src/main/res/layout/activity_device_detail.xml" value="0.16666666666666666" /> |
| | | <entry key="app/src/main/res/layout/activity_device_list.xml" value="0.16666666666666666" /> |
| | | <entry key="app/src/main/res/layout/activity_device_online_media_play.xml" value="0.16666666666666666" /> |
| | | <entry key="app/src/main/res/layout/activity_device_record_list.xml" value="0.17552083333333332" /> |
| | | <entry key="app/src/main/res/layout/fragment_device_detail_main.xml" value="0.17552083333333332" /> |
| | | <entry key="app/src/main/res/layout/item_device_list.xml" value="0.17552083333333332" /> |
| | |
| | | <option name="RES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/../../../app/src/main/res;file://$MODULE_DIR$/../../../app/src/debug/res;file://$MODULE_DIR$/../../../app/build/generated/res/rs/debug;file://$MODULE_DIR$/../../../app/build/generated/res/resValues/debug" /> |
| | | <option name="TEST_RES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/../../../app/src/androidTest/res;file://$MODULE_DIR$/../../../app/src/androidTestDebug/res;file://$MODULE_DIR$/../../../app/build/generated/res/rs/androidTest/debug;file://$MODULE_DIR$/../../../app/build/generated/res/resValues/androidTest/debug" /> |
| | | <option name="ASSETS_FOLDER_RELATIVE_PATH" value="/src/main/assets" /> |
| | | <option name="PROJECT_TYPE" value="1" /> |
| | | </configuration> |
| | | </facet> |
| | | </component> |
| | |
| | | new BusinessRunnable(handler) {
|
| | | @Override
|
| | | public void doBusiness() throws BusinessException {
|
| | | DeviceBindResult deviceBindResult = deviceAddService.userDeviceBind( sn, devPwd, DMS_TIMEOUT);
|
| | | DeviceBindResult deviceBindResult = deviceAddService.hdlUserDeviceBind( sn, devPwd, DMS_TIMEOUT);
|
| | | mDeviceAddInfo.setDeviceDefaultName(deviceBindResult.getDeviceName());
|
| | | mDeviceAddInfo.setBindStatus(deviceBindResult.getBindStatus());
|
| | | mDeviceAddInfo.setBindAcount(deviceBindResult.getUserAccount());
|
| | |
| | | //添加子账户权限
|
| | | public static String ADD_POLICY = "addPolicy";
|
| | |
|
| | | public static String INDEPENDENT_REGISTER ="independentRegister";
|
| | |
|
| | | // URL地址
|
| | | public static String HOST = "";
|
| | | // 如果不知道appid,请登录open.lechange.com,开发者服务模块中创建应用
|
| | |
| | | HashMap<String, Object> paramsMap = new HashMap<String, Object>();
|
| | | paramsMap.put("token", bindDeviceData.data.token);
|
| | | paramsMap.put("deviceId", bindDeviceData.data.deviceId);
|
| | | JsonObject json = HttpSend.execute(paramsMap, CONST.METHOD_BINDDEVICE,DMS_TIME_OUT);
|
| | | BindDeviceData.Response response = new BindDeviceData.Response();
|
| | | response.parseData(json);
|
| | | return response;
|
| | | }
|
| | |
|
| | | /**
|
| | | * 绑定设备
|
| | | *
|
| | | * @param bindDeviceData
|
| | | * @return
|
| | | * @throws BusinessException
|
| | | */
|
| | | public static BindDeviceData.Response hdlUserDeviceBind(BindDeviceData bindDeviceData) throws BusinessException {
|
| | | HashMap<String, Object> paramsMap = new HashMap<String, Object>();
|
| | | paramsMap.put("extDevId", bindDeviceData.data.deviceId);
|
| | | paramsMap.put("spk","security.ipcam.imou");
|
| | | paramsMap.put("sid","8D00708PAGA01ED");
|
| | | paramsMap.put("code", bindDeviceData.data.code);
|
| | | JsonObject json = HttpSend.execute(paramsMap, CONST.METHOD_BINDDEVICE,DMS_TIME_OUT);
|
| | | BindDeviceData.Response response = new BindDeviceData.Response();
|
| | |
| | | // HttpSend.execute(jsonParam, CONST.ADD_POLICY,TIME_OUT);
|
| | | // return true;
|
| | |
|
| | | final Map<String, Object> map = new Gson().fromJson(new Gson().toJson(req), new TypeToken<Map<String, String>>() {
|
| | | }.getType());
|
| | |
|
| | | JsonObject json = HttpSend.execute(map, CONST.CREATE_SUB_ACCOUNT, TIME_OUT);
|
| | | // final Map<String, Object> map = new Gson().fromJson(new Gson().toJson(req), new TypeToken<Map<String, Object>>() {
|
| | | // }.getType());
|
| | | //
|
| | | // JsonObject json = HttpSend.execute(map, CONST.CREATE_SUB_ACCOUNT, TIME_OUT);
|
| | | return true;
|
| | | }
|
| | | }
|
| | |
| | | Map<String, Object> map = paramsInit(paramsMap);
|
| | | JsonObject jsonResult = null;
|
| | | if (CONST.isHdlServer()) {
|
| | | if (method.equals("bindDevice")) {
|
| | | jsonResult = doPost(CONST.HOST + "/home-wisdom/app/device/independentRegister", map, timeOut);
|
| | | } else {
|
| | | jsonResult = doPost(CONST.HOST + "/home-wisdom/imou/openapi/" + method, map, timeOut);
|
| | | }
|
| | | } else {
|
| | | jsonResult = doPost(CONST.HOST + "/openapi/" + method, map, timeOut);
|
| | | if (jsonResult == null) {
|
| | |
| | | String msg = jsonResult.get("msg").getAsString();
|
| | | throw new BusinessException(code + msg);
|
| | | }
|
| | |
|
| | | JsonObject jsonData = new JsonObject();
|
| | | try {
|
| | | JsonObject jsonData = jsonResult.getAsJsonObject("data");
|
| | | jsonData = jsonResult.getAsJsonObject("data");
|
| | | if (jsonData == null) {
|
| | | jsonData = new JsonObject();
|
| | | }
|
| | | return jsonData;
|
| | |
|
| | | } catch (Throwable e) {
|
| | | BusinessException businessException = new BusinessException(e);
|
| | | throw businessException;
|
| | | // BusinessException businessException = new BusinessException(e);
|
| | | // throw businessException;
|
| | | }
|
| | | return jsonData;
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | | private static JsonObject doPost(String url, Map<String, Object> map, int timeOut) throws BusinessException {
|
| | | Gson gson = new Gson();
|
| | | map.put("homeId", LCDeviceEngine.newInstance().getHomeId());
|
| | | String json;
|
| | | JsonObject jsonObject;
|
| | | if(CONST.isHdlServer()) {
|
| | | map.put("homeId", LCDeviceEngine.newInstance().getHomeId());
|
| | | if (map.containsKey("params")) {
|
| | | Map<String, Object> tempMap = (Map<String, Object>) map.get("params");
|
| | | map.remove("params");
|
| | |
| | | public void onClick(View v) {
|
| | | int id = v.getId();
|
| | | if (id == R.id.tv_next) {
|
| | | mPresenter.modifyDevName();
|
| | | completeAction();
|
| | | //mPresenter.modifyDevName();
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | PageNavigationHelper.gotoManualInputPage(this);
|
| | | return;
|
| | | }
|
| | |
|
| | | //扫描二维码--kaede
|
| | | mPresenter.getDeviceInfo(scanResult.getSn().trim(), scanResult.getMode());
|
| | | }
|
| | | }
|
| | |
| | | return deviceBindResult;
|
| | | }
|
| | |
|
| | | public DeviceBindResult hdlUserDeviceBind(String deviceId, String code, int timeout) throws BusinessException {
|
| | | BindDeviceData req=new BindDeviceData();
|
| | | req.data.deviceId = deviceId;
|
| | | req.data.code = code;
|
| | | BindDeviceData.Response response = DeviceAddOpenApiManager.hdlUserDeviceBind(req);
|
| | | DeviceBindResult deviceBindResult = new DeviceBindResult();
|
| | | deviceBindResult.setBindStatus(response.data.bindStatus);
|
| | | deviceBindResult.setDeviceName(response.data.deviceName);
|
| | | deviceBindResult.setUserAccount(response.data.userAccount);
|
| | | return deviceBindResult;
|
| | | }
|
| | |
|
| | | /**
|
| | | * openApi
|
| | | * 修改设备或者通道名,channelId为空则为修改设备名,不为空为修改通道名
|
| | |
| | | android:textSize="20dp" />
|
| | |
|
| | | <TextView
|
| | | android:visibility="invisible"
|
| | | android:layout_width="wrap_content"
|
| | | android:layout_height="wrap_content"
|
| | | android:layout_gravity="center"
|
| | |
| | | android:textSize="15sp" />
|
| | |
|
| | | <com.mm.android.deviceaddmodule.mobilecommon.widget.ClearEditText
|
| | | android:visibility="invisible"
|
| | | android:id="@+id/device_name_input"
|
| | | android:layout_width="match_parent"
|
| | | android:layout_height="@dimen/add_device_common_edit_height"
|
| | |
| | | //// implementation("com.android.support:support-v4:28.0.0") |
| | | //} |
| | | |
| | | apply plugin: 'com.android.library' |
| | | apply plugin: 'com.android.application' |
| | | repositories { |
| | | flatDir { |
| | | dirs 'libs' |
| | |
| | | <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> |
| | | <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> |
| | | |
| | | <application> |
| | | <application |
| | | android:name=".App" |
| | | android:debuggable="false" |
| | | android:allowBackup="false" |
| | | android:icon="@mipmap/sdk_launcher" |
| | | android:label="@string/app_name" |
| | | android:roundIcon="@mipmap/sdk_launcher" |
| | | android:supportsRtl="false" |
| | | android:theme="@style/AppTheme" |
| | | tools:replace="android:allowBackup,android:label,android:supportsRtl"> |
| | | <activity |
| | | android:name=".ui.EnvGuideActivity" |
| | | android:configChanges="orientation|keyboardHidden|screenSize|locale" |
| | | android:launchMode="singleTop" |
| | | android:screenOrientation="portrait"> |
| | | <intent-filter> |
| | | <action android:name="android.intent.action.MAIN" /> |
| | | <category android:name="android.intent.category.LAUNCHER" /> |
| | | </intent-filter> |
| | | </activity> |
| | | <activity |
| | | android:name=".ui.DeviceListActivity" |
| | | android:configChanges="orientation|keyboardHidden|screenSize|locale" |
| | | android:launchMode="singleTop" |
| | | android:exported="false" |
| | | android:theme="@style/device_page_style" |
| | | android:screenOrientation="portrait"></activity> |
| | | <activity |
| | | android:name=".ui.DeviceDetailActivity" |
| | | android:configChanges="orientation|keyboardHidden|screenSize|locale" |
| | | android:launchMode="singleTop" |
| | | android:exported="false" |
| | | android:theme="@style/device_page_style" |
| | | android:screenOrientation="portrait"></activity> |
| | | <activity |
| | | android:name=".ui.DeviceOnlineMediaPlayActivity" |
| | | android:configChanges="orientation|keyboardHidden|screenSize|locale" |
| | | android:launchMode="singleTop" |
| | | android:exported="false" |
| | | android:theme="@style/device_page_style" |
| | | android:screenOrientation="portrait"></activity> |
| | | <activity |
| | | android:name=".ui.DeviceRecordListActivity" |
| | |
| | | android:configChanges="orientation|keyboardHidden|screenSize|locale" |
| | | android:launchMode="singleTop" |
| | | android:exported="false" |
| | | android:theme="@style/device_page_style" |
| | | android:screenOrientation="portrait"></activity> |
| | | </application> |
| | | </manifest> |
| | |
| | | };
|
| | | }
|
| | |
|
| | | /**
|
| | | * 格式化SD卡
|
| | | * @param deviceId
|
| | | * @param iRecoverSDCardCallBack
|
| | | */
|
| | | public void recoverSDCard(final String deviceId, final IGetDeviceInfoCallBack.IRecoverSDCardCallBack iRecoverSDCardCallBack){
|
| | | final LCBusinessHandler handler = new LCBusinessHandler() {
|
| | | @Override
|
| | | public void handleBusiness(Message msg) {
|
| | | if (iRecoverSDCardCallBack == null) {
|
| | | return;
|
| | | }
|
| | | if (msg.what == HandleMessageCode.HMC_SUCCESS) {
|
| | | //成功
|
| | | iRecoverSDCardCallBack.onSuccess("Success");
|
| | | } else {
|
| | | //失败
|
| | | iRecoverSDCardCallBack.onError(BusinessErrorTip.throwError(msg));
|
| | | }
|
| | | }
|
| | | };
|
| | | new BusinessRunnable(handler) {
|
| | | @Override
|
| | | public void doBusiness() throws BusinessException {
|
| | | try {
|
| | | boolean b = DeviceInfoOpenApiManager.recoverSDCard(deviceId);
|
| | | handler.obtainMessage(HandleMessageCode.HMC_SUCCESS, b).sendToTarget();
|
| | | } catch (BusinessException e) {
|
| | | throw e;
|
| | | }
|
| | | }
|
| | | };
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | import com.google.gson.JsonObject;
|
| | | import com.mm.android.deviceaddmodule.LCDeviceEngine;
|
| | | import com.mm.android.deviceaddmodule.mobilecommon.AppConsume.BusinessException;
|
| | | import com.mm.android.deviceaddmodule.mobilecommon.common.Constants;
|
| | | import com.mm.android.deviceaddmodule.mobilecommon.utils.PreferencesHelper;
|
| | | import com.mm.android.deviceaddmodule.openapi.HttpSend;
|
| | |
|
| | | import org.json.JSONObject;
|
| | |
|
| | | import java.util.HashMap;
|
| | |
|
| | |
| | | return true;
|
| | | }
|
| | |
|
| | | public static boolean recoverSDCard(String deviceId) throws BusinessException{
|
| | | HashMap<String, Object> paramsMap = new HashMap<String, Object>();
|
| | | paramsMap.put("token", LCDeviceEngine.newInstance().accessToken);
|
| | | paramsMap.put("deviceId", deviceId);
|
| | | HttpSend.execute(paramsMap, MethodConst.RECOVER_SDCARD,TIME_OUT);
|
| | | return true;
|
| | | }
|
| | |
|
| | | /**
|
| | | * 获取设备版本和可升级信息
|
| | | *
|
| | |
| | | void onError(Throwable throwable);
|
| | | }
|
| | |
|
| | | public interface IRecoverSDCardCallBack {
|
| | | /**
|
| | | * 成功
|
| | | *
|
| | | * @param result
|
| | | */
|
| | | void onSuccess(String result);
|
| | |
|
| | | /**
|
| | | * 错误回调
|
| | | *
|
| | | * @param throwable
|
| | | */
|
| | | void onError(Throwable throwable);
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | | }
|
| | |
| | |
|
| | | public static String DELETE_DEVICE_PERMISSION = "deleteDevicePermission";
|
| | |
|
| | | public static String RECOVER_SDCARD = "recoverSDCard";
|
| | |
|
| | | public static String SD_STATUE_QUERY = "deviceSdcardStatus";
|
| | | public static String GET_DEVICE_CLOUD = "getDeviceCloud";
|
| | |
|
| | |
| | | private IGetDeviceInfoCallBack.IModifyDeviceName modifyNameListener;
|
| | | private String fromWhere;
|
| | | private TextView tvDeploymentTip;
|
| | | private TextView tvFormat_sd;
|
| | |
|
| | | public static DeviceDetailMainFragment newInstance() {
|
| | | DeviceDetailMainFragment fragment = new DeviceDetailMainFragment();
|
| | |
| | | tvDeviceVersion = view.findViewById(R.id.tv_device_version);
|
| | | tvCurrentWifi = view.findViewById(R.id.tv_current_wifi);
|
| | | rlCurWifi = view.findViewById(R.id.rl_cur_wifi);
|
| | | tvFormat_sd =view.findViewById(R.id.tvFormat_sd);
|
| | |
|
| | | rlDeployment.setOnClickListener(this);
|
| | | rlDetele.setOnClickListener(this);
|
| | | rlDeviceDetail.setOnClickListener(this);
|
| | | rlCurWifi.setOnClickListener(this);
|
| | | tvFormat_sd.setOnClickListener(this);
|
| | | DeviceDetailActivity deviceDetailActivity = (DeviceDetailActivity) getActivity();
|
| | | deviceDetailActivity.tvTitle.setText(getResources().getString(R.string.lc_demo_device_detail_title));
|
| | | if (arguments == null) {
|
| | |
| | | deviceDetailService.unBindDevice(deviceUnBindData, this);*/
|
| | | deviceDetailService.deletePermission(deviceListBean.deviceId,null,this);
|
| | | }
|
| | | else if(id==R.id.tvFormat_sd){
|
| | | deviceDetailActivity.rlLoading.setVisibility(View.VISIBLE);
|
| | | DeviceDetailService deviceDetailService = ClassInstanceManager.newInstance().getDeviceDetailService();
|
| | | /* DeviceUnBindData deviceUnBindData = new DeviceUnBindData();
|
| | | deviceUnBindData.data.deviceId = deviceListBean.deviceId;
|
| | | deviceDetailService.unBindDevice(deviceUnBindData, this);*/
|
| | | deviceDetailService.recoverSDCard(deviceListBean.deviceId, new IGetDeviceInfoCallBack.IRecoverSDCardCallBack() {
|
| | | @Override
|
| | | public void onSuccess(String result) {
|
| | | deviceDetailActivity.rlLoading.setVisibility(View.GONE);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public void onError(Throwable throwable) {
|
| | | deviceDetailActivity.rlLoading.setVisibility(View.GONE);
|
| | | }
|
| | | });
|
| | |
|
| | | }
|
| | | }
|
| | |
|
| | | @Override
|
| | |
| | | mLayoutParams.addRule(RelativeLayout.BELOW, R.id.rl_title);
|
| | | frLiveWindow.setLayoutParams(mLayoutParams);
|
| | | MediaPlayHelper.quitFullScreen(DeviceOnlineMediaPlayActivity.this);
|
| | | llController.setVisibility(View.VISIBLE);
|
| | | llController.setVisibility(View.GONE);
|
| | | rlTitle.setVisibility(View.VISIBLE);
|
| | | llSpeak1.setVisibility(View.GONE);
|
| | | llCloudStage1.setVisibility(View.GONE);
|
| | |
| | | MediaPlayHelper.setFullScreen(DeviceOnlineMediaPlayActivity.this);
|
| | | llController.setVisibility(View.GONE);
|
| | | rlTitle.setVisibility(View.GONE);
|
| | | llSpeak1.setVisibility(View.VISIBLE);
|
| | | llSpeak1.setVisibility(View.GONE);
|
| | | llCloudStage1.setVisibility(View.VISIBLE);
|
| | | llVideo1.setVisibility(View.VISIBLE);
|
| | | llScreenShot1.setVisibility(View.VISIBLE);
|
| | | llVideo1.setVisibility(View.GONE);
|
| | | llScreenShot1.setVisibility(View.GONE);
|
| | | RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(frRecord
|
| | | .getLayoutParams());
|
| | | layoutParams.removeRule(RelativeLayout.BELOW);
|
| | |
| | | import android.widget.TextView; |
| | | import android.widget.Toast; |
| | | |
| | | import com.callBack.IAddCamera; |
| | | import com.lechange.demo.R; |
| | | import com.lechange.demo.tools.RootUtil; |
| | | import com.mm.android.deviceaddmodule.utils.SDsolutionUtility; |
| | |
| | | HdlToLcUtils.getInstance().initData(this, "HDL-HOME-APP-TEST", "WeJ8TY88vbakCcnvH8G1tDUqzLWY8yss", "https://test-gz.hdlcontrol.com"); |
| | | |
| | | HdlToLcUtils.getInstance().setHomeId("1547099040465408002"); |
| | | HdlToLcUtils.getInstance().setToken("eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJqdGkiOiI0YTJhNzZiYTUxNzU0ZmFmODZlYjhhNDZiODUzZWRjMCIsImNvbXBhbnlJZCI6IjIwMiIsInJvbGUiOiIiLCJoZWFkZXJQcmVmaXgiOiJCZWFyZXIgIiwidXNlckFjY291bnQiOiJ3eHIiLCJ0ZW5hbnRJZCI6IjIwIiwidXNlclR5cGUiOiJVU0VSX0IiLCJ0b2tlblR5cGUiOiJhY2Nlc3NfdG9rZW4iLCJ1c2VyTmFtZSI6Ind4ciIsIm9wZW5BcHBsaWNhdGlvbklkIjoiMCIsInVzZXJJZCI6IjEzOTIwMzU1NjgyMDQ0MjMxNjkiLCJleHAiOjE2NjkyMDEzODYsIm5iZiI6MTY2OTE5NDE4Nn0.jlXwyCbdy41f4tkObmnKup6r2xGRzk5fLtHfNgaNSdJ6deyzKFVLQcDH3FMW_AntAo2ghkTQLZGnMXt8k7uoC0fa6XLHA8bTNYvjx4-2X1ky2FMcvv_sDTmmPMo6EbqOeRNkCoiLly2iTB4Ch6FJRSQo0UFkpOJtJJuCCo92B5c"); |
| | | HdlToLcUtils.getInstance().setToken("eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJqdGkiOiJjZmQ1NzM3NTk4YjA0YjQ3YTQyOTQ4YzczNTNkODk3MCIsImNvbXBhbnlJZCI6IjIwMiIsInJvbGUiOiIiLCJoZWFkZXJQcmVmaXgiOiJCZWFyZXIgIiwidXNlckFjY291bnQiOiJ3eHIiLCJ0ZW5hbnRJZCI6IjIwIiwidXNlclR5cGUiOiJVU0VSX0IiLCJ0b2tlblR5cGUiOiJhY2Nlc3NfdG9rZW4iLCJ1c2VyTmFtZSI6Ind4ciIsIm9wZW5BcHBsaWNhdGlvbklkIjoiMCIsInVzZXJJZCI6IjEzOTIwMzU1NjgyMDQ0MjMxNjkiLCJleHAiOjE2NjkyNzI5MDAsIm5iZiI6MTY2OTI2NTcwMH0.LX4HmxmxuH80eNpBuDurp8POOGwX2hhqcLR4ULCCSnGhhYH61OaTYym4rn_CGM2J15EBVg0EpcJAfabePtQAS6pbeNv60jf-5s-V4zCPyqGKatduFbx1uG1Bw3TPiPCoTdhKkWb_pwRAfchhFMeibMrbS9W3JSs6eJ1mpZODOtM"); |
| | | HdlToLcUtils.getInstance().setSubAccessToken("St_00003ee84eda32b14126af958052f20a"); |
| | | |
| | | // HdlToLcUtils.getInstance().openActivity(); |
| | | //HdlToLcUtils.getInstance().addCamera(); |
| | | HdlToLcUtils.getInstance().play("8F05F83AAG05B3A"); |
| | | HdlToLcUtils.getInstance().addCamera(new IAddCamera() { |
| | | @Override |
| | | public void success(String deviceId) { |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public void onError(String errMsg) { |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public void back() { |
| | | |
| | | } |
| | | }); |
| | | // HdlToLcUtils.getInstance().play("8F05F83AAG05B3A"); |
| | | |
| | | } |
| | | |
| | |
| | | // mUrl = CONST.Envirment.CHINA_TEST.url; |
| | | // ProviderManager.getAppProvider().setAppType(0); |
| | | // } else { |
| | | // mAppSecret = "017fc27bb987496f9a677e4e6f0c88"; |
| | | // mAppid = "lc0285433bc7e8423d"; |
| | | // mUrl = CONST.Envirment.OVERSEAS_PRO.url; |
| | | // secretKey = "017fc27bb987496f9a677e4e6f0c88"; |
| | | // appKey = "lc0285433bc7e8423d"; |
| | | // url = CONST.Envirment.OVERSEAS_PRO.url; |
| | | ProviderManager.getAppProvider().setAppType(1); |
| | | // } |
| | | |
| | |
| | | android:layout_height="match_parent"
|
| | | android:layout_weight="1"
|
| | | android:background="@color/lc_demo_color_442c2c2c"
|
| | | android:gravity="center">
|
| | | android:gravity="center"
|
| | | android:visibility="gone">
|
| | |
|
| | | <ImageView
|
| | | android:id="@+id/iv_sound"
|
| | |
| | | android:layout_height="@dimen/px_140"
|
| | | android:layout_marginBottom="@dimen/px_20"
|
| | | android:background="@color/lc_demo_color_ffffff"
|
| | | android:visibility="gone"
|
| | | android:paddingLeft="@dimen/px_30"
|
| | | android:paddingRight="@dimen/px_30">
|
| | |
|
| | |
| | | android:src="@mipmap/lc_demo_common_btn_next"></ImageView>
|
| | | </RelativeLayout>
|
| | | <RelativeLayout
|
| | | android:layout_width="match_parent"
|
| | | android:layout_height="@dimen/px_130"
|
| | | android:background="@color/lc_demo_color_ffffff"
|
| | | android:gravity="center_vertical"
|
| | | android:paddingLeft="@dimen/px_30"
|
| | | android:paddingRight="@dimen/px_30">
|
| | |
|
| | | <TextView
|
| | | android:id="@+id/tvFormat_sd"
|
| | | android:layout_width="wrap_content"
|
| | | android:layout_height="wrap_content"
|
| | | android:layout_centerVertical="true"
|
| | | android:text="@string/format_sd"
|
| | | android:textColor="@color/lc_demo_color_2c2c2c"
|
| | | android:textSize="@dimen/px_36"></TextView>
|
| | | </RelativeLayout>
|
| | | <RelativeLayout
|
| | | android:visibility="gone"
|
| | | android:layout_marginTop="@dimen/px_1"
|
| | | android:id="@+id/rl_cur_wifi"
|
| | |
| | | android:layout_gravity="bottom"
|
| | | android:layout_marginBottom="@dimen/px_50"
|
| | | android:background="@color/lc_demo_color_ffffff"
|
| | | android:gravity="center_vertical">
|
| | | android:gravity="center_vertical"
|
| | | android:visibility="gone">
|
| | |
|
| | | <TextView
|
| | | android:layout_width="wrap_content"
|
| | |
| | | <string name="lc_demo_device_today_no_record">today no record</string>
|
| | | <string name="lc_demo_device_local_sd">No storage medium</string>
|
| | | <string name="lc_demo_device_cloud_not_open">Cloud storage is not enabled</string>
|
| | | <string name="format_sd">Format sd card</string>
|
| | | </resources>
|
| | |
| | | <string name="lc_demo_device_today_no_record">今日暂无录像</string>
|
| | | <string name="lc_demo_device_local_sd">无存储介质</string>
|
| | | <string name="lc_demo_device_cloud_not_open">云存储未开通</string>
|
| | | <string name="format_sd">格式化SD卡</string>
|
| | | </resources>
|