From 214f9edd2fe20c20e32630e9b5380cc6271c1eb7 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 27 三月 2021 16:51:13 +0800 Subject: [PATCH] 白色背景修改 --- BuWanVideo/src/com/weikou/beibeivideo/ui/main/MainActivity.java | 42 ------------------------------------------ 1 files changed, 0 insertions(+), 42 deletions(-) diff --git a/BuWanVideo/src/com/weikou/beibeivideo/ui/main/MainActivity.java b/BuWanVideo/src/com/weikou/beibeivideo/ui/main/MainActivity.java index ace9165..5d1266a 100644 --- a/BuWanVideo/src/com/weikou/beibeivideo/ui/main/MainActivity.java +++ b/BuWanVideo/src/com/weikou/beibeivideo/ui/main/MainActivity.java @@ -140,17 +140,6 @@ WifiManager wifi = (WifiManager) this.getApplicationContext().getSystemService(Context.WIFI_SERVICE); WifiInfo info = wifi.getConnectionInfo(); - try { - Editor editor = mPre.edit(); - if (StringUtils.isEmpty(getMacAddress())) { - editor.putString("mac", info.getMacAddress()); - } else { - editor.putString("mac", getMacAddress()); - } - editor.commit(); - } catch (Exception e) { - - } tv_search = findViewById(R.id.tv_activity_main_search); iv_msg_dot = findViewById(R.id.iv_msg_dot); @@ -405,37 +394,6 @@ EventBus.getDefault().unregister(this); } - /* - * **************************************************************** - * 瀛愬嚱鏁帮細鑾峰緱鏈湴MAC鍦板潃 - * **************************************************************** - */ - private String getMacAddress() { - String result = ""; - String Mac = ""; - result = callCmd("busybox ifconfig", "HWaddr"); - - // 濡傛灉杩斿洖鐨剅esult == null锛屽垯璇存槑缃戠粶涓嶅彲鍙� - if (result == null) { - return "缃戠粶鍑洪敊锛岃妫�鏌ョ綉缁�"; - } - - // 瀵硅琛屾暟鎹繘琛岃В鏋� - // 渚嬪锛歟th0 Link encap:Ethernet HWaddr 00:16:E8:3E:DF:67 - if (result.length() > 0 && result.contains("HWaddr") == true) { - Mac = result.substring(result.indexOf("HWaddr") + 6, - result.length() - 1); - if (Mac.length() > 1) { - Mac = Mac.replaceAll(" ", ""); - result = ""; - String[] tmp = Mac.split(":"); - for (int i = 0; i < tmp.length; ++i) { - result += tmp[i]; - } - } - } - return result; - } private String callCmd(String cmd, String filter) { String result = ""; -- Gitblit v1.8.0