Procházet zdrojové kódy

[WallPadConfig]
1. 최신 소스로 업데이트(2021.04.19일기준)

DESKTOP-FBA840V\icontrols před 4 roky
rodič
revize
57e49febbe
51 změnil soubory, kde provedl 1739 přidání a 747 odebrání
  1. 138 52
      WallPadConfig/src/main/java/kr/co/icontrols/v40ioctl/V40IF.java
  2. 7 2
      WallPadConfig/src/main/java/kr/co/icontrols/v40ioctl/V40IOInterface.java
  3. 49 16
      WallPadConfig/src/main/java/kr/co/icontrols/v40ioctl/V40IOInterface2.java
  4. 152 28
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/MainActivity.java
  5. 13 5
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/ManualActivity.java
  6. 30 6
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/PopupActivity.java
  7. 72 22
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/declare/DBManager.java
  8. 142 142
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/declare/ID.java
  9. 10 6
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/imap/iMAPDeleteNewMobileDevice.java
  10. 11 6
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/imap/iMAPRegisterNewMobileDevice.java
  11. 4 2
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/imap/iMAPSetAccessKey.java
  12. 13 6
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/manual/Lcd_Clean_MANUAL.java
  13. 12 5
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/manual/MobileDeviceReg_MANUAL.java
  14. 11 4
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/manual/Morning_Call_MANUAL.java
  15. 19 9
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/manual/Pwd_Change_MANUAL.java
  16. 13 6
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/manual/RFCard_MANUAL.java
  17. 12 4
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/manual/ReliefCallPreset_MANUAL.java
  18. 11 4
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/manual/RemoteCallUserSet_MANUAL.java
  19. 13 6
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/manual/SettingMain_MANUAL.java
  20. 13 6
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/manual/Setting_Pop_NameSet_MANUAL.java
  21. 13 6
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/manual/Smartkey_MANUAL.java
  22. 13 6
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/manual/Time_Setting_MANUAL.java
  23. 15 5
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/manual/WebCtrPwd_MANUAL.java
  24. 36 11
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/AudioRecordController.java
  25. 6 2
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/ConfigCleanLcdMainScreen.java
  26. 29 8
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/ConfigHandicappedModeScreen.java
  27. 50 24
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/ConfigInRoomSensorMainScreen.java
  28. 89 35
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/ConfigMobileDeviceAddScreen.java
  29. 14 5
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/ConfigMoningCallMainScreen.java
  30. 27 11
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/ConfigPwChangeMainScreen.java
  31. 56 27
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/ConfigRfCardMainScreen.java
  32. 173 68
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/ConfigSettingMainScreen.java
  33. 8 4
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/ConfigSkinChangeScreen.java
  34. 85 36
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/ConfigSmartKeyMainScreen.java
  35. 7 2
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/ConfigTimeSetScreen.java
  36. 5 1
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/PopupAsCall.java
  37. 13 5
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/PopupMobileDeviceAdd.java
  38. 13 6
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/PopupMobileDeviceDel.java
  39. 7 3
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/PopupMobileDeviceInit.java
  40. 49 18
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/PopupNameSet.java
  41. 9 2
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/PopupNoticeReboot.java
  42. 32 8
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/PopupReliefCallPreset.java
  43. 30 11
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/PopupRemoconReg.java
  44. 65 19
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/PopupRemoteCallUserSetting.java
  45. 34 14
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/PopupRfCardReg.java
  46. 3 2
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/PopupSkinChangeAlarm.java
  47. 18 12
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/PopupSkinCopyComplete.java
  48. 37 24
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/PopupSmartKeyReg.java
  49. 7 2
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/PopupSmartKeySvrSend.java
  50. 32 21
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/PopupUserSkinSet.java
  51. 19 12
      WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/PopupWebCtrPwd.java

+ 138 - 52
WallPadConfig/src/main/java/kr/co/icontrols/v40ioctl/V40IF.java

@@ -3,6 +3,8 @@ package kr.co.icontrols.v40ioctl;
 import android.os.Build;
 import android.util.Log;
 
+import com.util.LogUtil;
+
 import kr.co.icontrols.wallpadsupport.Version;
 
 public class V40IF {
@@ -34,9 +36,12 @@ public class V40IF {
         try {
             if (Build.VERSION.SDK_INT > 23) mV40IOIF_NOUGAT = new V40IOInterface2();
             else mV40IOIF = new V40IOInterface();
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] V40IF()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -44,9 +49,13 @@ public class V40IF {
         try {
             if (Build.VERSION.SDK_INT > 23) return mV40IOIF_NOUGAT.WpdInterfaceOpen();
             else return mV40IOIF.WpdInterfaceOpen();
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return -99;
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] WpdInterfaceOpen()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
             return -99;
         }
     }
@@ -55,9 +64,13 @@ public class V40IF {
         try {
             if (Build.VERSION.SDK_INT > 23) return mV40IOIF_NOUGAT.WpdInterfaceClose();
             else return mV40IOIF.WpdInterfaceClose();
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return -99;
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] WpdInterfaceClose()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
             return -99;
         }
     }
@@ -66,9 +79,13 @@ public class V40IF {
         try {
             if (Build.VERSION.SDK_INT > 23) return mV40IOIF_NOUGAT.WpdInterfaceControl(cmd, arg);
             else return mV40IOIF.WpdInterfaceControl(cmd, arg);
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return -99;
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] WpdInterfaceControl(int cmd, int arg)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
             return -99;
         }
     }
@@ -77,9 +94,12 @@ public class V40IF {
         try {
             if (Build.VERSION.SDK_INT > 23) mV40IOIF_NOUGAT.SetMacAddr(mac);
             else mV40IOIF.SetMacAddr(mac);
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] SetMacAddr(String mac)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -87,9 +107,12 @@ public class V40IF {
         try {
             if (Build.VERSION.SDK_INT > 23) mV40IOIF_NOUGAT.IpAddr(ip);
             else mV40IOIF.IpAddr(ip);
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] IpAddr(String ip)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -97,9 +120,12 @@ public class V40IF {
         try {
             if (Build.VERSION.SDK_INT > 23) mV40IOIF_NOUGAT.GatewayIp(gw);
             else mV40IOIF.GatewayIp(gw);
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] GatewayIp(String gw)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -107,9 +133,12 @@ public class V40IF {
         try {
             if (Build.VERSION.SDK_INT > 23) mV40IOIF_NOUGAT.NetMask(mask);
             else mV40IOIF.NetMask(mask);
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] NetMask(String mask)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -117,9 +146,12 @@ public class V40IF {
         try {
             if (Build.VERSION.SDK_INT > 23) mV40IOIF_NOUGAT.NetAll(ip, mask, gw, mac);
             else mV40IOIF.NetAll(ip, mask, gw, mac);
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] NetAll(String ip, String mask, String gw, String mac)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -127,9 +159,12 @@ public class V40IF {
         try {
             if (Build.VERSION.SDK_INT > 23) mV40IOIF_NOUGAT.LiveUpdate();
             else mV40IOIF.LiveUpdate();
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] LiveUpdate()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -137,9 +172,12 @@ public class V40IF {
         try {
             if (Build.VERSION.SDK_INT > 23) mV40IOIF_NOUGAT.UsbUpdate();
             else mV40IOIF.UsbUpdate();
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] UsbUpdate()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -147,9 +185,13 @@ public class V40IF {
         try {
             if (Build.VERSION.SDK_INT > 23) return mV40IOIF_NOUGAT.LcdWakeUp();
             else return mV40IOIF.LcdWakeUp();
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return -99;
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] LcdWakeUp()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
             return -99;
         }
     }
@@ -158,9 +200,12 @@ public class V40IF {
         try {
             if (Build.VERSION.SDK_INT > 23) mV40IOIF_NOUGAT.Reboot(sec);
             else mV40IOIF.Reboot(sec);
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] Reboot(int sec)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -168,9 +213,12 @@ public class V40IF {
         try {
             if (Build.VERSION.SDK_INT > 23) mV40IOIF_NOUGAT.NetDns1(dns);
             else mV40IOIF.NetDns1(dns);
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] NetDns1(String dns)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -178,9 +226,12 @@ public class V40IF {
         try {
             if (Build.VERSION.SDK_INT > 23) mV40IOIF_NOUGAT.NetDns2(dns);
             else mV40IOIF.NetDns2(dns);
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] NetDns2(String dns)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -188,9 +239,13 @@ public class V40IF {
         try {
             if (Build.VERSION.SDK_INT > 23) return mV40IOIF_NOUGAT.sensorread();
             else return mV40IOIF.sensorread();
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return -99;
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] sensorread()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
             return -99;
         }
     }
@@ -199,9 +254,13 @@ public class V40IF {
         try {
             if (Build.VERSION.SDK_INT > 23) return mV40IOIF_NOUGAT.LcdWakeUp();
             else return mV40IOIF.LcdWakeUp();
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return -99;
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] setLcdWakeUp()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
             return -99;
         }
     }
@@ -211,9 +270,12 @@ public class V40IF {
             Log.i(TAG, "[setDns] DNS1 : " + dns1 + " / DNS2 : " + dns2);
             NetDns1(dns1);
             NetDns2(dns2);
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] setDns(String dns1, String dns2)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -221,9 +283,12 @@ public class V40IF {
         try {
             Log.i(TAG, "[setV40Reboot] V40 Device will reboot : " +sec + " second !!!");
             Reboot(sec);
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] setV40Reboot(int sec)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -231,9 +296,12 @@ public class V40IF {
         try {
             Log.i(TAG, "[setMACAddress] strMAC [" + strMAC+ "]");
             SetMacAddr(strMAC);
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] setMACAddress(String strMAC)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -241,9 +309,12 @@ public class V40IF {
         try {
             Log.i(TAG, "[setIPAddress] strIP [" + strIP + "]");
             IpAddr(strIP);
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] setIPAddress(String strIP)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -251,9 +322,12 @@ public class V40IF {
         try {
             Log.i(TAG, "[setNetmaskAddress] strNetmask [" + strNetmask + "]");
             NetMask(strNetmask);
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] setNetmaskAddress(String strNetmask)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -261,9 +335,12 @@ public class V40IF {
         try {
             Log.i(TAG, "[setGatewayAddress] strGateway [" + strGateway+ "]");
             GatewayIp(strGateway);
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] setGatewayAddress(String strGateway)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -272,9 +349,12 @@ public class V40IF {
             Log.i(TAG, "[setNetworkInterface] strIP [" + strIP+ "], strNetmask [" + strNetmask+ "], strGateway [" + strGateway+ "], strMAC [" + strMAC+ "]");
 
             NetAll(strIP, strNetmask, strGateway, strMAC);
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] setNetworkInterface(String strIP, String strNetmask, String strGateway, String strDNS, String strMAC)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -287,9 +367,12 @@ public class V40IF {
             GatewayIp(strGateway);
             // DNS 설정 JNI method는 아직 없음(2018.02.26)
             SetMacAddr(strMAC);
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] setNetworkInterface(String strIP, String strNetmask, String strGateway, String strDNS, String strMAC)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -381,8 +464,11 @@ public class V40IF {
                 WpdInterfaceControl(0xFF09, (ctr)?1:0);
                 WpdInterfaceClose();
             }
-        } catch (Exception e) {
-            e.printStackTrace();
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 

+ 7 - 2
WallPadConfig/src/main/java/kr/co/icontrols/v40ioctl/V40IOInterface.java

@@ -2,6 +2,8 @@ package kr.co.icontrols.v40ioctl;
 
 import android.util.Log;
 
+import com.util.LogUtil;
+
 import kr.co.icontrols.wallpadsupport.Version;
 
 public class V40IOInterface {
@@ -117,8 +119,11 @@ public class V40IOInterface {
 				WpdInterfaceControl(0xFF09, (ctr)?1:0);
 				WpdInterfaceClose();
 			}
-		} catch (Exception e) {
-			e.printStackTrace();
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
+			//e.printStackTrace();            
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 	}
 

+ 49 - 16
WallPadConfig/src/main/java/kr/co/icontrols/v40ioctl/V40IOInterface2.java

@@ -2,6 +2,8 @@ package kr.co.icontrols.v40ioctl;
 
 import android.util.Log;
 
+import com.util.LogUtil;
+
 import kr.co.icontrols.wallpadsupport.Version;
 
 public class V40IOInterface2 {
@@ -55,10 +57,14 @@ public class V40IOInterface2 {
             SetMacAddr(strMAC);
 
         }
-        catch (Exception e)
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+        catch (Exception  e)
 		{
             Log.e(TAG, "[Exception] setMACAddress(String strMAC)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -68,10 +74,14 @@ public class V40IOInterface2 {
 			Log.i(TAG, "[setIPAddress] strIP [" + strIP + "]");
 			IpAddr(strIP);
 		}
-        catch (Exception e)
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+        catch (Exception  e)
 		{
             Log.e(TAG, "[Exception] setIPAddress(String strIP)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -81,10 +91,14 @@ public class V40IOInterface2 {
 			Log.i(TAG, "[setNetmaskAddress] strNetmask [" + strNetmask + "]");
 			NetMask(strNetmask);
 		}
-		catch (Exception e)
+		catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+        catch (Exception  e)
 		{
             Log.e(TAG, "[Exception] setNetmaskAddress(String strNetmask)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -94,10 +108,14 @@ public class V40IOInterface2 {
             Log.i(TAG, "[setGatewayAddress] strGateway [" + strGateway+ "]");
 			GatewayIp(strGateway);
         }
-        catch (Exception e)
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+        catch (Exception  e)
 		{
             Log.e(TAG, "[Exception] setGatewayAddress(String strGateway)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -111,10 +129,14 @@ public class V40IOInterface2 {
             GatewayIp(strGateway);
 			Reboot(5);
         }
-        catch (Exception e)
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+        catch (Exception  e)
 		{
             Log.e(TAG, "[Exception] setNetworkInterface(String strIP, String strNetmask, String strGateway, String strDNS)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }*/
 
@@ -135,10 +157,14 @@ public class V40IOInterface2 {
 
 			NetAll(strIP, strNetmask, strGateway, strMAC);
 		}
-		catch (Exception e)
+		catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+		catch (Exception  e)
 		{
 			Log.e(TAG, "[Exception] setNetworkInterface(String strIP, String strNetmask, String strGateway, String strDNS, String strMAC)");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 	}
 
@@ -164,10 +190,14 @@ public class V40IOInterface2 {
             // DNS 설정 JNI method는 아직 없음(2018.02.26)
             SetMacAddr(strMAC);
         }
-        catch (Exception e)
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+        catch (Exception  e)
 		{
             Log.e(TAG, "[Exception] setNetworkInterface(String strIP, String strNetmask, String strGateway, String strDNS, String strMAC)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -259,8 +289,11 @@ public class V40IOInterface2 {
 				WpdInterfaceControl(0xFF09, (ctr)?1:0);
 				WpdInterfaceClose();
 			}
-		} catch (Exception e) {
-			e.printStackTrace();
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 	}
 

+ 152 - 28
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/MainActivity.java

@@ -34,6 +34,7 @@ import com.artncore.commons.API_Menu.MenuListDataClass;
 import com.artncore.commons.API_Menu.MenuListDataClass.ChildIDMapping;
 import com.artncore.commons.define;
 import com.artncore.wallpadapi.WallPadAPI;
+import com.util.LogUtil;
 
 import java.io.File;
 import java.util.ArrayList;
@@ -42,7 +43,9 @@ import kr.co.icontrols.ReliefCall.ReliefCallInterface;
 import kr.co.icontrols.wallpadconfig.declare.Common;
 import kr.co.icontrols.wallpadconfig.declare.ID;
 import kr.co.icontrols.wallpadconfig.screen.ConfigCleanLcdMainScreen;
+import kr.co.icontrols.wallpadconfig.screen.ConfigInKakaoiMainScreen;
 import kr.co.icontrols.wallpadconfig.screen.ConfigInRoomSensorMainScreen;
+import kr.co.icontrols.wallpadconfig.screen.ConfigInWifiMainScreen;
 import kr.co.icontrols.wallpadconfig.screen.ConfigMobileDeviceAddScreen;
 import kr.co.icontrols.wallpadconfig.screen.ConfigMoningCallMainScreen;
 import kr.co.icontrols.wallpadconfig.screen.ConfigPwChangeMainScreen;
@@ -140,6 +143,10 @@ public class MainActivity extends WpadActivity
     private ConfigMobileDeviceAddScreen          configMobileDeviceAddScreen = null;
     private ConfigInRoomSensorMainScreen         configInRoomSensorMainScreen = null;
 
+    //Wifi
+    private ConfigInWifiMainScreen                configWifiMainScreen = null;
+    private ConfigInKakaoiMainScreen                configInKakaoiMainScreen = null;
+
     public WallpadStatusData GetDBObj()
     {
         return wdb;
@@ -189,6 +196,8 @@ public class MainActivity extends WpadActivity
             Log.d(TAG, "OperationMode = MODE_NOMAL");
             try {
                 mWallPadAPI = new WallPadAPI(this);
+            } catch (RuntimeException re) {
+                LogUtil.errorLogInfo("", TAG, re);
             } catch(Exception e) {
                 Log.e(TAG, "[ExceptionError] - new WallPadAPI : " + e);
             }
@@ -198,7 +207,10 @@ public class MainActivity extends WpadActivity
         }
 
         try { wdb = new WallpadStatusData(this); }
-        catch(Exception e) { Log.e(TAG, "[ExceptionError] - onCreate->WallpadStatusData Create : " + e); }
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+        catch (Exception e) { Log.e(TAG, "[ExceptionError] - onCreate->WallpadStatusData Create : " + e); }
 
         CheckIsFolderMake();
 
@@ -267,6 +279,9 @@ public class MainActivity extends WpadActivity
                 if (DoorCamKind[1] == WallpadDeviceSet.DOORTYPE_SMARTKEY) {
                     DcamSetting = WallpadDeviceSet.DOORTYPE_SMARTKEY;
                 }
+                else if (DoorCamKind[1] == WallpadDeviceSet.DOORTYPE_SMARTKEY_EXTERNAL) {
+                    DcamSetting = WallpadDeviceSet.DOORTYPE_SMARTKEY_EXTERNAL;
+                }
                 else if (DoorCamKind[1] == WallpadDeviceSet.DOORTYPE_RFCAM) {
                     DcamSetting = WallpadDeviceSet.DOORTYPE_RFCAM;
                 }
@@ -307,7 +322,7 @@ public class MainActivity extends WpadActivity
         mChildList.add(API_Menu.SubMenuConfig.TimeSetting);
 
         Log.w(TAG, "[Create] DcamSetting = " + DcamSetting);
-        if ((DcamSetting == WallpadDeviceSet.DOORTYPE_SMARTKEY) || (DcamSetting == WallpadDeviceSet.DOORTYPE_IOT_SMART) ) {
+        if ((DcamSetting == WallpadDeviceSet.DOORTYPE_SMARTKEY) || (DcamSetting == WallpadDeviceSet.DOORTYPE_SMARTKEY_EXTERNAL) || (DcamSetting == WallpadDeviceSet.DOORTYPE_IOT_SMART) ) {
             if (naKeyType[1] == WallpadDeviceSet.BLESMARTKEY_BAND) mChildList.add(API_Menu.SubMenuConfig.SmartBand);
             else mChildList.add(API_Menu.SubMenuConfig.SmartKey);
         }
@@ -340,6 +355,24 @@ public class MainActivity extends WpadActivity
         }
 
         //mChildList.add(API_Menu.SubMenuConfig.HandicappedPerson);
+
+
+        //이진규
+        //카카오 홈 판단 여부 체크
+        WallpadDeviceSet wdst_ = new WallpadDeviceSet(getApplicationContext());
+        boolean kakaohomeuse = wdst_.Get_KakaoUse();
+        wdst_.closeDB();
+        if (kakaohomeuse) {
+            mChildList.add(API_Menu.SubMenuConfig.KakaoHome);
+        }
+
+
+        //와이파이
+        boolean wifiuse = false;
+        if (wifiuse) {
+            mChildList.add(API_Menu.SubMenuConfig.Wifi);
+        }
+
         mGroupList.add(mChildList);
 
         for (int i = 0; i < mGroupList.size(); i++) {
@@ -368,15 +401,23 @@ public class MainActivity extends WpadActivity
         if (mMenu == null) {
             //mWallPadApiCheckHandler.sendEmptyMessage(0);
             //setChangeScreen(API_Menu.SubMenuConfig.Configuration, false);
-
             Log.i(TAG, "[Create] mMenu = null");
-            if (OPERATION_MODE == Common.MODE_NOMAL) {
-                mTempCurrentScreenId = API_Menu.SubMenuConfig.Configuration;
-                SetTitleText(API_Menu.SubMenuConfig.Name_Configuration);
-                mWallPadApiCheckHandler.sendEmptyMessage(0);
+            if(CheckIntent())
+            {
+                mTempCurrentScreenId = API_Menu.SubMenuConfig.Wifi;
+                SetTitleText(API_Menu.SubMenuConfig.Name_Wifi);
+                mWallPadApiCheckHandler.sendEmptyMessage(3);
             }
-            else {
-                setChangeScreen(API_Menu.SubMenuConfig.Configuration, false);
+            else
+            {
+                if (OPERATION_MODE == Common.MODE_NOMAL) {
+                    mTempCurrentScreenId = API_Menu.SubMenuConfig.Configuration;
+                    SetTitleText(API_Menu.SubMenuConfig.Name_Configuration);
+                    mWallPadApiCheckHandler.sendEmptyMessage(0);
+                }
+                else {
+                    setChangeScreen(API_Menu.SubMenuConfig.Configuration, false);
+                }
             }
         }
         else {
@@ -446,6 +487,20 @@ public class MainActivity extends WpadActivity
         Log.i(TAG, "End onCreate -------------------------------------------------");
     }
 
+    /**
+     * 카카오에서 환경설정을 호출하는 경우
+     */
+    private boolean CheckIntent()
+    {
+        boolean result = false;
+        //카카오 홈에서 WIFI를 호출하는 경우
+        Intent received_intent = getIntent();
+        if(received_intent!=null)
+        {
+            result = received_intent.getBooleanExtra("WIFI", false);
+        }
+        return result;
+    }
 
     /**
      * (평생코드) WallPadAPI 초기생성시 Connect 에 시간이 걸리며, <br>
@@ -478,6 +533,20 @@ public class MainActivity extends WpadActivity
                     setChangeScreen(API_Menu.SubMenuConfig.Configuration, false);
                 }
             }
+            //새로 추가한 부분
+            if (msg.what == 3) {
+                if (mWallPadAPI != null) {
+                    Log.w(TAG, "[mWallPadApiCheckHandler] WallPad API Loading!!!");
+                    if (mWallPadAPI.Check_Connect()) {
+                        Log.d(TAG, "[mWallPadApiCheckHandler] WallPad API Connected!!");
+                        mWallPadApiCheckHandler.sendEmptyMessageDelayed(1, 10);
+                    }
+                    else {
+                        Log.w(TAG, "[mWallPadApiCheckHandler] WallPad API not Connected, yet!!");
+                        mWallPadApiCheckHandler.sendEmptyMessageDelayed(0, 10);
+                    }
+                }
+            }
             else {
                 Log.d(TAG, "[mWallPadApiCheckHandler] Not expected value!! Handler stop!! msg.what [" + msg.what +"]");
             }
@@ -524,10 +593,14 @@ public class MainActivity extends WpadActivity
             TopLayout.removeView(TopManualBtn);
             ViewRegistration(TopLayout, TopManualBtn, marginLeft, 0);
         }
-        catch (Exception e)
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+        catch (Exception  e)
         {
             Log.e(TAG, "[Exception] setManualBtnVisible(boolean bEnable)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -563,10 +636,14 @@ public class MainActivity extends WpadActivity
                 return false;
             }
         }
-        catch (Exception ex)
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+        catch (Exception  ex)
         {
             Log.e(TAG, "[getManualUse] - Exception !!!");
-            ex.printStackTrace();
+            //ex.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, ex);
         }
 
         return false;
@@ -619,10 +696,14 @@ public class MainActivity extends WpadActivity
         try
         {
             mCurrentManualScreenId = -1;
-        } catch (Exception e)
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+        catch (Exception  e)
         {
             Log.e(TAG, "[Exception] resetCurrentManualScreenID()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -637,10 +718,14 @@ public class MainActivity extends WpadActivity
                 mManualActivity.finish();
             }
         }
-        catch (Exception e)
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+        catch (Exception  e)
         {
             Log.e(TAG, "[Exception] FinishManualActivity()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -660,6 +745,10 @@ public class MainActivity extends WpadActivity
         this.unregisterReceiver(mWallPadAlertBR);
 		this.unregisterReceiver(mWallPadJogBR);
 
+		//해당 리시버 해제
+		if(configWifiMainScreen!=null)
+            configWifiMainScreen.Release();
+
         mSound.Release();
 
         super.setFinishTimerDestroy();
@@ -809,9 +898,13 @@ public class MainActivity extends WpadActivity
 
                     configInRoomSensorMainScreen.DrawUpdate(configInRoomSensorMainScreen.NowScreenMode);
                 }
-                catch (Exception e)
+                catch (RuntimeException re) {
+                    LogUtil.errorLogInfo("", TAG, re);
+                }
+                catch (Exception  e)
                 {
-                    e.printStackTrace();
+                    //e.printStackTrace();
+                    LogUtil.errorLogInfo("", TAG, e);
                 }
             }
         }
@@ -879,6 +972,7 @@ public class MainActivity extends WpadActivity
         }
     }
 
+
     /**
      * Wifi 아이디 정보와 비밀번호 정보를 넘겨주기 위해 추가
      * @param ScreenId
@@ -912,7 +1006,7 @@ public class MainActivity extends WpadActivity
             return true;
         }
     }
-    
+
     /**
      * Popup Activity 를 시작시킨다. (시작시 Intent Type 데이터를 전달한다)
      *
@@ -964,7 +1058,10 @@ public class MainActivity extends WpadActivity
                     finish();
                 }
             }
-            catch (Exception e)
+            catch (RuntimeException re) {
+                LogUtil.errorLogInfo("", TAG, re);
+            }
+            catch (Exception  e)
             {
                 Log.e(TAG, "[Exception Error] [onActivityResult] - data.getExtras().get");
             }
@@ -1111,6 +1208,18 @@ public class MainActivity extends WpadActivity
                     super.setCurrentScreen(configInRoomSensorMainScreen);
                     break;
 
+                case API_Menu.SubMenuConfig.KakaoHome:
+                    SetTitleText(API_Menu.SubMenuConfig.Name_KakaoHome);
+                    configInKakaoiMainScreen = new ConfigInKakaoiMainScreen(this, ScreenLayout, mWallPadAPI, OPERATION_MODE);
+                    super.setCurrentScreen(configSettingMainScreen);
+                    break;
+                    
+                //Wifi 화면
+                case API_Menu.SubMenuConfig.Wifi:
+                    SetTitleText(API_Menu.SubMenuConfig.Name_Wifi);
+                    configWifiMainScreen = new ConfigInWifiMainScreen(this, ScreenLayout, mWallPadAPI, OPERATION_MODE);
+                    super.setCurrentScreen(configWifiMainScreen);
+                    break;
                 //추가 또는 수정해야할 부분 1. - 스크린 별 layout 생성
 
                 default:
@@ -1119,7 +1228,10 @@ public class MainActivity extends WpadActivity
                     return false;
             }
         }
-        catch(Exception e)
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return false;
+        } catch(Exception e)
         {
             Log.e(TAG, "[ExceptionError] - setChangeScreen->Screen Create : " + e);
             return false;
@@ -1342,9 +1454,12 @@ public class MainActivity extends WpadActivity
 
             // 13. MenuOpen True 설정
             MenuOpen = true;
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
         } catch (Exception e) {
             Log.e(TAG, "[Exception] OpenMenuLayout()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -1459,9 +1574,12 @@ public class MainActivity extends WpadActivity
             filter.addAction("WALLPAD_DIAL_GLOBALSCREEN_TOUCH");
             registerReceiver(mWallPadJogBR, filter);
         }
-        catch (Exception e)
-        {
-            e.printStackTrace();
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+        catch (Exception e) {
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -1652,9 +1770,12 @@ public class MainActivity extends WpadActivity
                     }
                 }
             }
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
         } catch (Exception e) {
             Log.e(TAG, "[Exception] getReliefCallUse()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
         return false;
     }
@@ -1700,9 +1821,12 @@ public class MainActivity extends WpadActivity
             data.closeDB();
             Log.d(TAG, "[GetEasyModeUXUse] EasymodeSupport" + EasymodeSupport + "], bUse [" + EasyModeUse + "]");
             return EasymodeSupport & EasyModeUse;
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
         } catch (Exception e) {
             Log.e(TAG, "[Exception] GetEasyModeUXUse()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
         return false;
     }

+ 13 - 5
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/ManualActivity.java

@@ -14,6 +14,7 @@ import android.widget.RelativeLayout;
 
 import com.artncore.WallPadDataMgr.WallpadStatusData;
 import com.artncore.wallpadapi.WallPadAPI;
+import com.util.LogUtil;
 
 import kr.co.icontrols.wallpadconfig.declare.Common;
 import kr.co.icontrols.wallpadconfig.declare.ID;
@@ -113,8 +114,10 @@ public class ManualActivity extends WpadActivity {
         {
             wdb = new WallpadStatusData(this);
         }
-        catch (Exception e)
-        {
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+        catch (Exception e) {
             Log.e(TAG, "[Error] - WallpadStatusData Create : " + e);
         }
 
@@ -320,10 +323,15 @@ public class ManualActivity extends WpadActivity {
                     break;
             }
         }
-        catch (Exception e)
-        {
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            mCurrentScreenId = -1;
+            return false;
+        }
+        catch (Exception  e) {
             Log.e(TAG, "[Exception] - setChangeScreen->Screen Create: " + e.toString());
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
             mCurrentScreenId = -1;
             return false;
         }

+ 30 - 6
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/PopupActivity.java

@@ -12,6 +12,7 @@ package kr.co.icontrols.wallpadconfig;
 import com.artncore.WallPadDataMgr.WallpadDeviceSet;
 import com.artncore.WallPadDataMgr.WallpadStatusData;
 import com.artncore.wallpadapi.WallPadAPI;
+import com.util.LogUtil;
 
 import android.annotation.SuppressLint;
 import android.content.Context;
@@ -47,6 +48,7 @@ import kr.co.icontrols.wallpadconfig.screen.PopupSmartKeySvrSend;
 import kr.co.icontrols.wallpadconfig.screen.PopupUserSkinSet;
 
 import kr.co.icontrols.wallpadconfig.screen.PopupWebCtrPwd;
+import kr.co.icontrols.wallpadconfig.screen.PopupWifiPwd;
 import kr.co.icontrols.wallpadsupport.WpadActivity;
 import kr.co.icontrols.wallpadsupport.WpadScale;
 
@@ -111,6 +113,8 @@ public class PopupActivity extends WpadActivity
 
     private PopupRemoteCallUserSetting popupRemoteCallUserSetting;
 
+    private PopupWifiPwd popupWifiPwd;
+
     public WallpadStatusData GetDBObj()
     {
         return wdb;
@@ -239,7 +243,10 @@ public class PopupActivity extends WpadActivity
         }
 
         try { wdb = new WallpadStatusData(this); }
-        catch(Exception e) { Log.e(TAG, "[ExceptionError] - onCreate->WallpadStatusData Create : " + e); }
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+        catch (Exception e) { Log.e(TAG, "[ExceptionError] - onCreate->WallpadStatusData Create : " + e); }
 
         // 4. Layout registration
         DebugLogOutput("[Create] - Step4 : Layout registration");
@@ -472,6 +479,14 @@ public class PopupActivity extends WpadActivity
                     FinshOutSide = false;
                     break;
 
+
+                case ID.screen.PopupWifiPwd:
+                    popupWifiPwd = new PopupWifiPwd(mContext, AllLayout, wpapi, OPERATION_MODE, getIntent());
+                    super.setCurrentScreen(popupWebCtrPwd);
+                    Style = Common.POPUP_STYLE_NOMAL;
+                    FinshOutSide = false;
+                    break;
+
                 case ID.screen.PopupNoticeReboot:
                     popupNoticeReboot = new PopupNoticeReboot(mContext, AllLayout, wpapi, OPERATION_MODE);
                     super.setCurrentScreen(popupNoticeReboot);
@@ -570,7 +585,10 @@ public class PopupActivity extends WpadActivity
                     return false;
             }
         }
-        catch(Exception e)
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+        catch (Exception e)
         {
             Log.e(TAG, "[ExceptionError] - setChangeScreen->Screen Create : " + e);
             mCurrentScreenId = -1;
@@ -633,18 +651,24 @@ public class PopupActivity extends WpadActivity
             HandleMsg.arg1 = arg1;
             HandleMsg.arg2 = arg2;
             PopupScreenHandler.sendMessageDelayed(HandleMsg, delay);
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] sendHandlerMsgDelayed(msg)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
     private void finishPopup() {
         try {
             super.finish();
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] finishPopup()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 

+ 72 - 22
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/declare/DBManager.java

@@ -8,6 +8,7 @@ import android.database.sqlite.SQLiteDatabase.CursorFactory;
 import android.util.Log;
 
 import com.artncore.commons.define;
+import com.util.LogUtil;
 
 import java.io.File;
 
@@ -35,9 +36,13 @@ public class DBManager {
     public boolean initDatabase() {
         try {
             return openORCreateDatabase();
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return false;
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] initDatabase()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
             return false;
         }
     }
@@ -46,9 +51,13 @@ public class DBManager {
         try {
             mSQLiteDatabase.close();
             return true;
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return false;
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] closeDatabase()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
             return false;
         }
     }
@@ -75,9 +84,13 @@ public class DBManager {
             } else {
                 return false;
             }
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return false;
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] openORCreateDatabase()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
             return false;
         }
     }
@@ -87,9 +100,13 @@ public class DBManager {
             Log.d(TAG, "[accessDBDirectly] strDBQuery : " + strDBQuery);
             Cursor cursor = mSQLiteDatabase.rawQuery(strDBQuery, null);
             return cursor;
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return null;
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] accessDBDirectly(strDBQuery)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
             return null;
         }
     }
@@ -97,9 +114,12 @@ public class DBManager {
     public void execSQL(String strSQL) {
         try {
             mSQLiteDatabase.execSQL(strSQL);
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] execSQL(strSQL)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -108,9 +128,13 @@ public class DBManager {
             Log.d(TAG, "[isDBFileExist]");
             if (mDatabaseFile.exists()) return true;
             else return false;
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return false;
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] isDBFileExist()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
             return false;
         }
     }
@@ -118,12 +142,12 @@ public class DBManager {
     public boolean deleteDBFile() {
         try {
             if (mDatabaseFile.exists()) {
-                if (mDatabaseFile.delete()) {
+                if (FileDelete(mDatabaseFile)) {
                     Log.d(TAG, "[deleteDBFile] Succeeded deleting a database file!! [1]");
                     return true;
                 } else {
                     Log.d(TAG, "[deleteDBFile] Failed to delete a database file!! [1]");
-                    if (mDatabaseFile.delete()) {
+                    if (FileDelete(mDatabaseFile)) {
                         Log.d(TAG, "[deleteDBFile] Succeeded deleting a database file!! [2]");
                         return true;
                     } else {
@@ -135,9 +159,13 @@ public class DBManager {
                 Log.d(TAG, "[deleteDBFile] There is no file to delete [" + mDatabaseFile.getPath() + "]");
                 return true;
             }
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return false;
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] deleteDBFile()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
             return false;
         }
     }
@@ -162,9 +190,13 @@ public class DBManager {
             Log.d(TAG, "[createTable] DBQuery : " + DBQuery);
             mSQLiteDatabase.execSQL(DBQuery);
             return true;
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return false;
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] createTable(String table, String[] values)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
             return false;
         }
     }
@@ -180,9 +212,13 @@ public class DBManager {
 
             if (nResult == 1) return true;
             else return false;
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return false;
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] isTableExist(String table)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
             return false;
         }
     }
@@ -216,10 +252,24 @@ public class DBManager {
                 return lResultCnt;
             }
             return -1;
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return -1;
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] setData(table, key, strKey, strValue)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
             return -1;
         }
     }
+
+    private synchronized boolean FileDelete(File file)
+    {
+        boolean result = false;
+        if(file!=null && file.exists())
+        {
+            result = file.delete();
+        }
+        return result;
+    }
 }

+ 142 - 142
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/declare/ID.java

@@ -25,7 +25,7 @@ public final class ID
         public final static int OccupancySensorConfig     = BASE + 121;       // 스마트 재실센서 설정
     }
 
-    /* ==========================================================================
+      /* ==========================================================================
      * screen
      * ========================================================================== */
     public static final class screen
@@ -43,7 +43,7 @@ public final class ID
         public final static int ConfigTimeSetMainScreen						    = 10000;
         public final static int ConfigRfCardMainScreen                          = 11000;      // 카드관리 (RF카드)
         public final static int ConfigHandicappedModeScreen                     = 12000;      // 장애인모드
-        //        public final static int ConfigNoiseLogScreen                            = 13000;      // 층간소음 내역
+//        public final static int ConfigNoiseLogScreen                            = 13000;      // 층간소음 내역
         public final static int ConfigMobileDeviceAddScreen                     = 15000;      // 원격제어 모바일 기기 등록
         public final static int ConfigInRoomSensorScreen                        = 16000;      // 재실센서 설정화면
 
@@ -62,7 +62,7 @@ public final class ID
         public final static int PopupSmartKeyAlarm                              = 25000;      // 스마트키 개별 & 전체 삭제 알람 팝업
         public final static int PopupSmartKeySvrSend                            = 26000;      // 스마트키 서버 전송
 
-        //        public final static int PopupNoiseLogDel                                = 27000;      // 층간소음 내역 삭제팝업
+//        public final static int PopupNoiseLogDel                                = 27000;      // 층간소음 내역 삭제팝업
         public final static int PopupReliefCallPreset                           = 30000;      // 안심통화 필터 프리셋 설정 팝업
         public final static int PopupMobileDeviceAdd                            = 31000;      // 모바일기기 등록 팝업
         public final static int PopupMobileDeviceDel                            = 32000;      // 모바일기기 삭제 팝업
@@ -1460,41 +1460,41 @@ public final class ID
             public final static int USERSET_SET				= BASE + 206;
             public final static int ELECRANGE_SAFE_SET		= BASE + 207;
 
-            public final static int DETAIL_CANCEL			= BASE + 208;
-            public final static int DETAIL_SAVE				= BASE + 209;
+			public final static int DETAIL_CANCEL			= BASE + 208;
+			public final static int DETAIL_SAVE				= BASE + 209;
 
-            public final static int DETAIL_AMPM_UP			= BASE + 210;
-            public final static int DETAIL_AMPM_DOWN		= BASE + 211;
-            public final static int DETAIL_HOUR_UP			= BASE + 212;
-            public final static int DETAIL_HOUR_DOWN		= BASE + 213;
-            public final static int DETAIL_MIN_UP			= BASE + 214;
-            public final static int DETAIL_MIN_DOWN 		= BASE + 215;
-            public final static int DETAIL_AREA_STARTTIME	= BASE + 216;
-            public final static int DETAIL_AREA_ENDTIME		= BASE + 217;
+			public final static int DETAIL_AMPM_UP			= BASE + 210;
+			public final static int DETAIL_AMPM_DOWN		= BASE + 211;
+			public final static int DETAIL_HOUR_UP			= BASE + 212;
+			public final static int DETAIL_HOUR_DOWN		= BASE + 213;
+			public final static int DETAIL_MIN_UP			= BASE + 214;
+			public final static int DETAIL_MIN_DOWN 		= BASE + 215;
+			public final static int DETAIL_AREA_STARTTIME	= BASE + 216;
+			public final static int DETAIL_AREA_ENDTIME		= BASE + 217;
 
             public final static int DETAIL_SUN				= BASE + 218;
-            public final static int DETAIL_MON				= BASE + 219;
-            public final static int DETAIL_TUE				= BASE + 220;
-            public final static int DETAIL_WED				= BASE + 221;
-            public final static int DETAIL_THUR				= BASE + 222;
-            public final static int DETAIL_FRI				= BASE + 223;
-            public final static int DETAIL_SAT				= BASE + 224;
-
-            public final static int DETAIL_LOC_LIV			= BASE + 225;
-            public final static int DETAIL_LOC_KIT			= BASE + 226;
-            public final static int DETAIL_LOC_TBL			= BASE + 227;
-            public final static int DETAIL_LOC_MROOM		= BASE + 228;
-            public final static int DETAIL_LOC_BED1			= BASE + 229;
-            public final static int DETAIL_LOC_BED2			= BASE + 230;
-            public final static int DETAIL_LOC_ELECRANGE	= BASE + 231;
-
-            public final static int DETAIL_ACTTIME1_UP		= BASE + 232;
-            public final static int DETAIL_ACTTIME1_DOWN	= BASE + 233;
-            public final static int DETAIL_ACTTIME2_UP		= BASE + 234;
-            public final static int DETAIL_ACTTIME2_DOWN	= BASE + 235;
-
-            public final static int DETAIL_ACT1_UP			= BASE + 236;
-            public final static int DETAIL_ACT1_DOWN		= BASE + 237;
+			public final static int DETAIL_MON				= BASE + 219;
+			public final static int DETAIL_TUE				= BASE + 220;
+			public final static int DETAIL_WED				= BASE + 221;
+			public final static int DETAIL_THUR				= BASE + 222;
+			public final static int DETAIL_FRI				= BASE + 223;
+			public final static int DETAIL_SAT				= BASE + 224;
+
+			public final static int DETAIL_LOC_LIV			= BASE + 225;
+			public final static int DETAIL_LOC_KIT			= BASE + 226;
+			public final static int DETAIL_LOC_TBL			= BASE + 227;
+			public final static int DETAIL_LOC_MROOM		= BASE + 228;
+			public final static int DETAIL_LOC_BED1			= BASE + 229;
+			public final static int DETAIL_LOC_BED2			= BASE + 230;
+			public final static int DETAIL_LOC_ELECRANGE	= BASE + 231;
+
+			public final static int DETAIL_ACTTIME1_UP		= BASE + 232;
+			public final static int DETAIL_ACTTIME1_DOWN	= BASE + 233;
+			public final static int DETAIL_ACTTIME2_UP		= BASE + 234;
+			public final static int DETAIL_ACTTIME2_DOWN	= BASE + 235;
+
+			public final static int DETAIL_ACT1_UP			= BASE + 236;
+			public final static int DETAIL_ACT1_DOWN		= BASE + 237;
         }
 
         public static final class text
@@ -1675,91 +1675,91 @@ public final class ID
             }
         }
 
-        public static final class PwdChange_MANUAL
-        {
-            final static int BASE = MANUAL_PWD_CHANGE;
+		public static final class PwdChange_MANUAL
+		{
+			final static int BASE = MANUAL_PWD_CHANGE;
 
-            public static final class ELEMENT
-            {
-                public static final class IMAGE
-                {
-                    public final static int BACKGROUND 		= BASE + 100;
+			public static final class ELEMENT
+			{
+				public static final class IMAGE
+				{
+					public final static int BACKGROUND 		= BASE + 100;
 
-                    public final static int NUM_BTN_LINE 	= BASE + 101;
-                    public final static int DEL_BTN_LINE 	= BASE + 102;
-                    public final static int ALLDEL_BTN_LINE = BASE + 103;
-                    public final static int OK_BTN_LINE 	= BASE + 104;
+					public final static int NUM_BTN_LINE 	= BASE + 101;
+					public final static int DEL_BTN_LINE 	= BASE + 102;
+					public final static int ALLDEL_BTN_LINE = BASE + 103;
+					public final static int OK_BTN_LINE 	= BASE + 104;
 
                     public final static int MENU_LINE 		= BASE + 105;
-                }
-
-                public static final class TEXT
-                {
-                    public final static int EXPLAIN_INFO 	= BASE + 200;
-                    public final static int NUM_BTN_INFO 	= BASE + 201;
-                    public final static int DEL_BTN_INFO 	= BASE + 202;
-                    public final static int ALLDEL_BTN_INFO = BASE + 203;
-                    public final static int OK_BTN_INFO 	= BASE + 204;
+				}
+
+				public static final class TEXT
+				{
+					public final static int EXPLAIN_INFO 	= BASE + 200;
+					public final static int NUM_BTN_INFO 	= BASE + 201;
+					public final static int DEL_BTN_INFO 	= BASE + 202;
+					public final static int ALLDEL_BTN_INFO = BASE + 203;
+					public final static int OK_BTN_INFO 	= BASE + 204;
                     public final static int MENU_LINE 		= BASE + 205;
-                }
-            }
-        }
-
-        public static final class MorningCall_MANUAL
-        {
-            final static int BASE = MANUAL_MORNINGCALL;
-
-            public static final class ELEMENT
-            {
-                public static final class IMAGE
-                {
-                    public final static int BACKGROUND 				= BASE + 100;
-
-                    public final static int MORNINGCALL_USE_LINE 	= BASE + 101;
-                    public final static int TIMESET_BTN_LINE 		= BASE + 102;
-                    public final static int BELLSELECT_BTN_LINE 	= BASE + 103;
-                    public final static int LIGHTCTR_BTN_LINE 		= BASE + 104;
-                    public final static int VENTICTR_BTN_LINE 		= BASE + 105;
+				}
+			}
+		}
+
+		public static final class MorningCall_MANUAL
+		{
+			final static int BASE = MANUAL_MORNINGCALL;
+
+			public static final class ELEMENT
+			{
+				public static final class IMAGE
+				{
+					public final static int BACKGROUND 				= BASE + 100;
+
+					public final static int MORNINGCALL_USE_LINE 	= BASE + 101;
+					public final static int TIMESET_BTN_LINE 		= BASE + 102;
+					public final static int BELLSELECT_BTN_LINE 	= BASE + 103;
+					public final static int LIGHTCTR_BTN_LINE 		= BASE + 104;
+					public final static int VENTICTR_BTN_LINE 		= BASE + 105;
 
                     public final static int MENU_LINE 		        = BASE + 106;
-                }
+				}
 
-                public static final class TEXT
-                {
-                    public final static int MORNINGCALL_USE_INFO 	= BASE + 201;
-                    public final static int TIMESET_BTN_INFO 		= BASE + 202;
-                    public final static int BELLSELECT_BTN_INFO 	= BASE + 203;
-                    public final static int LIGHTCTR_BTN_INFO 		= BASE + 204;
-                    public final static int VENTICTR_BTN_INFO 		= BASE + 205;
+				public static final class TEXT
+				{
+					public final static int MORNINGCALL_USE_INFO 	= BASE + 201;
+					public final static int TIMESET_BTN_INFO 		= BASE + 202;
+					public final static int BELLSELECT_BTN_INFO 	= BASE + 203;
+					public final static int LIGHTCTR_BTN_INFO 		= BASE + 204;
+					public final static int VENTICTR_BTN_INFO 		= BASE + 205;
 
                     public final static int MENU_LINE 		        = BASE + 206;
-                }
-            }
-        }
-
-        public static final class TimeSetting_MANUAL
-        {
-            final static int BASE = MANUAL_TIMESETTING;
-
-            public static final class ELEMENT
-            {
-                public static final class IMAGE
-                {
-                    public final static int BACKGROUND 				= BASE + 100;
-
-                    public final static int TIMEZONE_LINE 			= BASE + 101;
-                    public final static int OK_BTN_LINE 			= BASE + 102;
+				}
+			}
+		}
+
+		public static final class TimeSetting_MANUAL
+		{
+			final static int BASE = MANUAL_TIMESETTING;
+
+			public static final class ELEMENT
+			{
+				public static final class IMAGE
+				{
+					public final static int BACKGROUND 				= BASE + 100;
+
+					public final static int TIMEZONE_LINE 			= BASE + 101;
+					public final static int OK_BTN_LINE 			= BASE + 102;
                     public final static int MENU_LINE 		        = BASE + 103;
-                }
+				}
 
-                public static final class TEXT
-                {
-                    public final static int TIMEZONE_INFO 			= BASE + 201;
-                    public final static int OK_BTN_INFO 			= BASE + 202;
+				public static final class TEXT
+				{
+					public final static int TIMEZONE_INFO 			= BASE + 201;
+					public final static int OK_BTN_INFO 			= BASE + 202;
                     public final static int MENU_LINE 		        = BASE + 203;
-                }
-            }
-        }
+				}
+			}
+		}
 
         public static final class RFcard_MANUAL
         {
@@ -1817,51 +1817,51 @@ public final class ID
             }
         }
 
-        public static final class SmartKey_MANUAL
-        {
-            final static int BASE = MANUAL_SMARTKEY;
+		public static final class SmartKey_MANUAL
+		{
+			final static int BASE = MANUAL_SMARTKEY;
 
-            public static final class ELEMENT
-            {
-                public static final class IMAGE
-                {
-                    public final static int BACKGROUND 				= BASE + 100;
+			public static final class ELEMENT
+			{
+				public static final class IMAGE
+				{
+					public final static int BACKGROUND 				= BASE + 100;
 
-                    public final static int BACK_BTN	 			= BASE + 101;
-                    public final static int NEXT_BTN	 			= BASE + 102;
+					public final static int BACK_BTN	 			= BASE + 101;
+					public final static int NEXT_BTN	 			= BASE + 102;
 
-                    public final static int ENROLL_BTN_LINE	 		= BASE + 103;
-                    public final static int DEL_BTN_LINE 			= BASE + 104;
-                    public final static int ALLDEL_BTN_LINE 		= BASE + 105;
-                    public final static int SVRSEND_BTN_LINE 		= BASE + 106;
+					public final static int ENROLL_BTN_LINE	 		= BASE + 103;
+					public final static int DEL_BTN_LINE 			= BASE + 104;
+					public final static int ALLDEL_BTN_LINE 		= BASE + 105;
+					public final static int SVRSEND_BTN_LINE 		= BASE + 106;
 
-                    public final static int ENROLL_IMG1 			= BASE + 107;
-                    public final static int ENROLL_IMG2 			= BASE + 108;
-                    public final static int ENROLL_IMG3 			= BASE + 109;
+					public final static int ENROLL_IMG1 			= BASE + 107;
+					public final static int ENROLL_IMG2 			= BASE + 108;
+					public final static int ENROLL_IMG3 			= BASE + 109;
 
                     public final static int MENU_LINE 		        = BASE + 110;
-                }
+				}
 
-                public static final class TEXT
-                {
-                    public final static int PAGE_TEXT		 		= BASE + 200;
+				public static final class TEXT
+				{
+					public final static int PAGE_TEXT		 		= BASE + 200;
 
-                    public final static int ENROLL_BTN_LINE	 		= BASE + 201;
-                    public final static int DEL_BTN_LINE 			= BASE + 202;
-                    public final static int ALLDEL_BTN_LINE 		= BASE + 203;
-                    public final static int SVRSEND_BTN_LINE 		= BASE + 204;
+					public final static int ENROLL_BTN_LINE	 		= BASE + 201;
+					public final static int DEL_BTN_LINE 			= BASE + 202;
+					public final static int ALLDEL_BTN_LINE 		= BASE + 203;
+					public final static int SVRSEND_BTN_LINE 		= BASE + 204;
 
-                    public final static int ENROLL_EXPLAIN 			= BASE + 205;
-                    public final static int ENROLL_EXPLAIN1 		= BASE + 206;
-                    public final static int ENROLL_EXPLAIN2 		= BASE + 207;
-                    public final static int ENROLL_EXPLAIN3 		= BASE + 208;
-                    public final static int ENROLL_EXPLAIN4 		= BASE + 209;
-                    public final static int ENROLL_EXPLAIN5 		= BASE + 210;
+					public final static int ENROLL_EXPLAIN 			= BASE + 205;
+					public final static int ENROLL_EXPLAIN1 		= BASE + 206;
+					public final static int ENROLL_EXPLAIN2 		= BASE + 207;
+					public final static int ENROLL_EXPLAIN3 		= BASE + 208;
+					public final static int ENROLL_EXPLAIN4 		= BASE + 209;
+					public final static int ENROLL_EXPLAIN5 		= BASE + 210;
 
                     public final static int MENU_LINE 		        = BASE + 211;
-                }
-            }
-        }
+				}
+			}
+		}
 
         public static final class MobileDevReg_MANUAL
         {
@@ -1926,7 +1926,7 @@ public final class ID
             }
         }
 
-        public static final class ReliefCallPreset_MANUAL {
+		public static final class ReliefCallPreset_MANUAL {
 
             final static int BASE = MANUAL_RELIEFCALLPRESET;
 

+ 10 - 6
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/imap/iMAPDeleteNewMobileDevice.java

@@ -110,13 +110,17 @@ public class iMAPDeleteNewMobileDevice extends WallPadiMAPClient
             {
                 if (result.equalsIgnoreCase("ok"))
                 {
-                    if ((GetAttributeVal(0, "name").equalsIgnoreCase("delete_remote_device")) && (GetAttributeVal(0, "type").equalsIgnoreCase("reply")))
+                    String name = GetAttributeVal(0, "name");
+                    String type = GetAttributeVal(0, "type");
+                    if ((name!=null && name.equalsIgnoreCase("delete_remote_device")) && (type!=null && type.equalsIgnoreCase("reply")))
                     {
                         SetItem("home_info");
-
-                        if ((GetAttributeVal(0, "dong").equalsIgnoreCase(myDong) == true) &&
-                                (GetAttributeVal(0, "ho").equalsIgnoreCase(myHo) == true) &&
-                                (GetAttributeVal(0, "ip").equalsIgnoreCase(myIP) == true))
+                        String dong = GetAttributeVal(0, "dong");
+                        String ho = GetAttributeVal(0, "ho");
+                        String ip = GetAttributeVal(0, "ip");
+                        if ((dong!=null && dong.equalsIgnoreCase(myDong) == true) &&
+                                (ho!=null && ho.equalsIgnoreCase(myHo) == true) &&
+                                (ip!=null && ip.equalsIgnoreCase(myIP) == true))
                         {
                             Proc.ProcSuccess();
                             return;
@@ -129,7 +133,7 @@ public class iMAPDeleteNewMobileDevice extends WallPadiMAPClient
         }
         else
         {
-            Proc.ProcError();
+            if(Proc!=null) Proc.ProcError();
         }
     }
     protected void ProcError()

+ 11 - 6
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/imap/iMAPRegisterNewMobileDevice.java

@@ -86,13 +86,18 @@ public class iMAPRegisterNewMobileDevice extends WallPadiMAPClient{
             {
                 if (result.equalsIgnoreCase("ok"))
                 {
-                    if ((GetAttributeVal(0, "name").equalsIgnoreCase("register_new_device")) && (GetAttributeVal(0, "type").equalsIgnoreCase("reply")))
+                    String name = GetAttributeVal(0, "name");
+                    String type = GetAttributeVal(0, "type");
+
+                    if ((name!=null && name.equalsIgnoreCase("register_new_device")) && (type!=null && type.equalsIgnoreCase("reply")))
                     {
                         SetItem("home_info");
-
-                        if ((GetAttributeVal(0, "dong").equalsIgnoreCase(myDong) == true) &&
-                                (GetAttributeVal(0, "ho").equalsIgnoreCase(myHo) == true) &&
-                                (GetAttributeVal(0, "ip").equalsIgnoreCase(myIP) == true))
+                        String dong = GetAttributeVal(0, "dong");
+                        String ho = GetAttributeVal(0, "ho");
+                        String ip = GetAttributeVal(0, "ip");
+                        if ((dong!=null && dong.equalsIgnoreCase(myDong) == true) &&
+                                (ho!=null && ho.equalsIgnoreCase(myHo) == true) &&
+                                (ip!=null && ip.equalsIgnoreCase(myIP) == true))
                         {
                             Proc.ProcSuccess();
                             return;
@@ -105,7 +110,7 @@ public class iMAPRegisterNewMobileDevice extends WallPadiMAPClient{
         }
         else
         {
-            Proc.ProcError();
+            if(Proc!=null) Proc.ProcError();
         }
     }
     protected void ProcError()

+ 4 - 2
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/imap/iMAPSetAccessKey.java

@@ -319,8 +319,10 @@ public class iMAPSetAccessKey extends WallPadiMAPClient{
             {
                 if (result.equalsIgnoreCase("ok"))
                 {
-                    if((GetAttributeVal(0, "name").equalsIgnoreCase("set_accesskey_info")) &&
-                            (GetAttributeVal(0, "type").equalsIgnoreCase("reply")))
+                    String name = GetAttributeVal(0, "name");
+                    String type = GetAttributeVal(0, "type");
+                    if((name!=null && name.equalsIgnoreCase("set_accesskey_info")) &&
+                            (type!=null && type.equalsIgnoreCase("reply")))
                     {
                         Proc.ProcSuccess();
                     }

+ 13 - 6
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/manual/Lcd_Clean_MANUAL.java

@@ -9,6 +9,7 @@ import android.view.View;
 import android.widget.RelativeLayout;
 
 import com.artncore.wallpadapi.WallPadAPI;
+import com.util.LogUtil;
 
 import kr.co.icontrols.wallpadconfig.R;
 import kr.co.icontrols.wallpadconfig.declare.Common;
@@ -57,10 +58,13 @@ public class Lcd_Clean_MANUAL extends WpadScreen
                     "화면청소를 시작하면 1분 동안" + "\r\n" +
                     "화면터치가 실행되지 않습니다.");
         }
-        catch (Exception e)
-        {
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+        catch (Exception e) {
             Log.e(TAG, "[Exception] Lcd_Clean_MANUAL !!!");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -85,10 +89,13 @@ public class Lcd_Clean_MANUAL extends WpadScreen
                 super.finish();
             }
         }
-        catch (Exception e)
-        {
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+        catch (Exception e) {
             Log.e(TAG, "[Exception] onTouchEvent(View v, MotionEvent event)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 }

+ 12 - 5
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/manual/MobileDeviceReg_MANUAL.java

@@ -10,6 +10,7 @@ import android.widget.RelativeLayout;
 
 import com.artncore.WallPadDataMgr.WallpadDeviceSet;
 import com.artncore.wallpadapi.WallPadAPI;
+import com.util.LogUtil;
 
 import kr.co.icontrols.wallpadconfig.MainActivity;
 import kr.co.icontrols.wallpadconfig.R;
@@ -181,10 +182,13 @@ public class MobileDeviceReg_MANUAL extends WpadScreen
 
             ChangeScreen(CurrentPage);
         }
-        catch (Exception e)
-        {
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+        catch (Exception  e) {
             Log.e(TAG, "[Exception] MobileDeviceReg_MANUAL !!!");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -328,10 +332,13 @@ public class MobileDeviceReg_MANUAL extends WpadScreen
                 }
             }
         }
-        catch (Exception e)
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e)
         {
             Log.e(TAG, "[Exception] onTouchEvent(View v, MotionEvent event)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 }

+ 11 - 4
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/manual/Morning_Call_MANUAL.java

@@ -10,6 +10,7 @@ import android.widget.RelativeLayout;
 
 import com.artncore.WallPadDataMgr.WallpadDeviceSet;
 import com.artncore.wallpadapi.WallPadAPI;
+import com.util.LogUtil;
 
 import kr.co.icontrols.wallpadconfig.R;
 import kr.co.icontrols.wallpadconfig.declare.Common;
@@ -109,10 +110,13 @@ public class Morning_Call_MANUAL extends WpadScreen
             );
 
         }
-        catch (Exception e)
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e)
         {
             Log.e(TAG, "[Exception] Morning_Call_MANUAL !!!");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -137,10 +141,13 @@ public class Morning_Call_MANUAL extends WpadScreen
                 super.finish();
             }
         }
-        catch (Exception e)
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e)
         {
             Log.e(TAG, "[Exception] onTouchEvent(View v, MotionEvent event)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 

+ 19 - 9
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/manual/Pwd_Change_MANUAL.java

@@ -10,6 +10,7 @@ import android.widget.RelativeLayout;
 
 import com.artncore.WallPadDataMgr.WallpadDeviceSet;
 import com.artncore.wallpadapi.WallPadAPI;
+import com.util.LogUtil;
 
 import kr.co.icontrols.wallpadconfig.R;
 import kr.co.icontrols.wallpadconfig.declare.Common;
@@ -102,10 +103,13 @@ public class Pwd_Change_MANUAL extends WpadScreen
             );
 
         }
-        catch (Exception e)
-        {
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+        catch (Exception  e) {
             Log.e(TAG, "[Exception] Pwd_Change_MANUAL !!!");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -130,10 +134,13 @@ public class Pwd_Change_MANUAL extends WpadScreen
                 super.finish();
             }
         }
-        catch (Exception e)
-        {
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+        catch (Exception  e) {
             Log.e(TAG, "[Exception] onTouchEvent(View v, MotionEvent event)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -171,9 +178,12 @@ public class Pwd_Change_MANUAL extends WpadScreen
                     "사용자는 반드시 비밀번호를" + "\r\n" +
                     "변경하여 사용해주시기 바랍니다.";
         }
-        catch (Exception ex)
-        {
-            ex.printStackTrace();
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+        catch (Exception  ex){
+            //ex.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, ex);
         }
 
 

+ 13 - 6
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/manual/RFCard_MANUAL.java

@@ -9,6 +9,7 @@ import android.view.View;
 import android.widget.RelativeLayout;
 
 import com.artncore.wallpadapi.WallPadAPI;
+import com.util.LogUtil;
 
 import kr.co.icontrols.wallpadconfig.R;
 import kr.co.icontrols.wallpadconfig.declare.Common;
@@ -136,10 +137,13 @@ public class RFCard_MANUAL extends WpadScreen
 
             ChangeScreen(CurrentPage);
         }
-        catch (Exception e)
-        {
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+        catch (Exception  e) {
             Log.e(TAG, "[Exception] RFCard_MANUAL !!!");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -239,10 +243,13 @@ public class RFCard_MANUAL extends WpadScreen
                 }
             }
         }
-        catch (Exception e)
-        {
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+        catch (Exception  e) {
             Log.e(TAG, "[Exception] onTouchEvent(View v, MotionEvent event)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 }

+ 12 - 4
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/manual/ReliefCallPreset_MANUAL.java

@@ -8,6 +8,8 @@ import android.view.MotionEvent;
 import android.view.View;
 import android.widget.RelativeLayout;
 
+import com.util.LogUtil;
+
 import kr.co.icontrols.wallpadconfig.R;
 import kr.co.icontrols.wallpadconfig.declare.Common;
 import kr.co.icontrols.wallpadconfig.declare.ID;
@@ -59,9 +61,12 @@ public class ReliefCallPreset_MANUAL extends WpadScreen {
             TXT_RELIEFCALL_CANCEL = new WpadTextView(context, false, 231, 110, Gravity.LEFT, Color.WHITE, Common.fontsize._20, false, ID.MANUAL.ReliefCallPreset_MANUAL.ELEMENT.TEXT.INFO);
             ViewRegistration(layout, TXT_RELIEFCALL_CANCEL, 889, 628);
             TXT_RELIEFCALL_CANCEL.setText(R.string.manual_reliefcall_preset_cancel);
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] ReliefCallPreset_MANUAL(Context context, RelativeLayout layout)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -81,9 +86,12 @@ public class ReliefCallPreset_MANUAL extends WpadScreen {
             if (nEvent == MotionEvent.ACTION_UP) {
                 super.finish();
             }
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] onTouchEvent(View v, MotionEvent event)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 }

+ 11 - 4
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/manual/RemoteCallUserSet_MANUAL.java

@@ -9,6 +9,7 @@ import android.view.View;
 import android.widget.RelativeLayout;
 
 import com.artncore.WallPadDataMgr.WallpadDeviceSet;
+import com.util.LogUtil;
 
 import kr.co.icontrols.wallpadconfig.R;
 import kr.co.icontrols.wallpadconfig.declare.Common;
@@ -99,9 +100,12 @@ public class RemoteCallUserSet_MANUAL extends WpadScreen {
                 ViewRegistration(layout, TXT_HOMEVIEWERAUTH, Common.PopupNomalMarginLEFT(nPosition_txt[nCase][2 + nIndex]), Common.PopupNomalMarginTOP(312));
                 TXT_HOMEVIEWERAUTH.setText("모바일 앱에서 세대보기를\n할 수 있는 권한입니다.\n해당 권한을 변경하고자 할 때\n아래 체크 버튼을 누릅니다.");
             }
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] RemoteCallUserSet_MANUAL(Context context, RelativeLayout layout)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -122,9 +126,12 @@ public class RemoteCallUserSet_MANUAL extends WpadScreen {
             if (nEvent == MotionEvent.ACTION_UP) {
                 super.finish();
             }
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] onTouchEvent(View v, MotionEvent event)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 }

+ 13 - 6
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/manual/SettingMain_MANUAL.java

@@ -9,6 +9,7 @@ import android.view.View;
 import android.widget.RelativeLayout;
 
 import com.artncore.wallpadapi.WallPadAPI;
+import com.util.LogUtil;
 
 import kr.co.icontrols.wallpadconfig.R;
 import kr.co.icontrols.wallpadsupport.WpadImageView;
@@ -117,10 +118,13 @@ public class SettingMain_MANUAL extends WpadScreen
             }
 
         }
-        catch (Exception e)
-        {
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+        catch (Exception  e) {
             Log.e(TAG, "[Exception] SettingMain_MANUAL !!!");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -145,10 +149,13 @@ public class SettingMain_MANUAL extends WpadScreen
                 super.finish();
             }
         }
-        catch (Exception e)
-        {
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+        catch (Exception  e){
             Log.e(TAG, "[Exception] onTouchEvent(View v, MotionEvent event)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 

+ 13 - 6
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/manual/Setting_Pop_NameSet_MANUAL.java

@@ -9,6 +9,7 @@ import android.view.View;
 import android.widget.RelativeLayout;
 
 import com.artncore.wallpadapi.WallPadAPI;
+import com.util.LogUtil;
 
 import kr.co.icontrols.wallpadconfig.R;
 import kr.co.icontrols.wallpadconfig.declare.Common;
@@ -64,10 +65,13 @@ public class Setting_Pop_NameSet_MANUAL extends WpadScreen
                             "아버지/어머니/아들/큰아들/작은아들/딸/큰딸/작은딸/막내/침실1/침실2/침실3/침실4/침실5/침실6 순으로 변경됩니다." + "\r\n" +
                             "다른 방에서 쓰고 있는 명칭은 사용할 수 없습니다.");
         }
-        catch (Exception e)
-        {
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+        catch (Exception  e) {
             Log.e(TAG, "[Exception] SettingMain_MANUAL !!!");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -92,10 +96,13 @@ public class Setting_Pop_NameSet_MANUAL extends WpadScreen
                 super.finish();
             }
         }
-        catch (Exception e)
-        {
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+        catch (Exception  e) {
             Log.e(TAG, "[Exception] onTouchEvent(View v, MotionEvent event)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 }

+ 13 - 6
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/manual/Smartkey_MANUAL.java

@@ -9,6 +9,7 @@ import android.view.View;
 import android.widget.RelativeLayout;
 
 import com.artncore.wallpadapi.WallPadAPI;
+import com.util.LogUtil;
 
 import kr.co.icontrols.wallpadconfig.R;
 import kr.co.icontrols.wallpadconfig.declare.Common;
@@ -153,10 +154,13 @@ public class Smartkey_MANUAL extends WpadScreen
 
             ChangeScreen(CurrentPage);
         }
-        catch (Exception e)
-        {
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+        catch (Exception  e) {
             Log.e(TAG, "[Exception] Smartkey_MANUAL !!!");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -256,10 +260,13 @@ public class Smartkey_MANUAL extends WpadScreen
                 }
             }
         }
-        catch (Exception e)
-        {
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+        catch (Exception  e) {
             Log.e(TAG, "[Exception] onTouchEvent(View v, MotionEvent event)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 }

+ 13 - 6
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/manual/Time_Setting_MANUAL.java

@@ -9,6 +9,7 @@ import android.view.View;
 import android.widget.RelativeLayout;
 
 import com.artncore.wallpadapi.WallPadAPI;
+import com.util.LogUtil;
 
 import kr.co.icontrols.wallpadconfig.R;
 import kr.co.icontrols.wallpadconfig.declare.Common;
@@ -67,10 +68,13 @@ public class Time_Setting_MANUAL extends WpadScreen
                             "저장하고자 할 때" + "\r\n" +
                             "누릅니다.");
         }
-        catch (Exception e)
-        {
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+        catch (Exception  e) {
             Log.e(TAG, "[Exception] Time_Setting_MANUAL !!!");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -95,10 +99,13 @@ public class Time_Setting_MANUAL extends WpadScreen
                 super.finish();
             }
         }
-        catch (Exception e)
-        {
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+        catch (Exception  e) {
             Log.e(TAG, "[Exception] onTouchEvent(View v, MotionEvent event)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 }

+ 15 - 5
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/manual/WebCtrPwd_MANUAL.java

@@ -8,6 +8,8 @@ import android.view.MotionEvent;
 import android.view.View;
 import android.widget.RelativeLayout;
 
+import com.util.LogUtil;
+
 import kr.co.icontrols.wallpadconfig.declare.Common;
 import kr.co.icontrols.wallpadconfig.declare.ID;
 import kr.co.icontrols.wallpadsupport.WpadImageView;
@@ -44,10 +46,13 @@ public class WebCtrPwd_MANUAL extends WpadScreen {
                             "※ 연속된 6자리 불가, 앞 4자리 동/호 숫자 불가, 입력 쉬운 숫자 불가(2580)");
 
         }
-        catch (Exception e)
-        {
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+        catch (Exception  e) {
             Log.e(TAG, "[Exception] InputPwd_Manual");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -67,9 +72,14 @@ public class WebCtrPwd_MANUAL extends WpadScreen {
             if (nEvent == MotionEvent.ACTION_UP) {
                 super.finish();
             }
-        } catch (Exception e) {
+        }
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+        catch (Exception  e) {
             Log.e(TAG, "[Exception] onTouchEvent(View v, MotionEvent event)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 }

+ 36 - 11
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/AudioRecordController.java

@@ -8,6 +8,8 @@ import android.media.AudioTrack;
 import android.media.MediaRecorder;
 import android.util.Log;
 
+import com.util.LogUtil;
+
 import java.io.File;
 
 import kr.co.icontrols.wallpadconfig.MainActivity;
@@ -43,9 +45,12 @@ public class AudioRecordController {
             if (!RecordingDirectory.exists()) {
                 RecordingDirectory.mkdirs();
             }
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] AudioRecordController(Context context, String recordingDir, String recordingFileDir)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -65,9 +70,12 @@ public class AudioRecordController {
                     , AUDIO_ENCODING
                     , maxJitter
                     , AudioTrack.MODE_STREAM);
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] initAudioRecordControls()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -87,9 +95,12 @@ public class AudioRecordController {
                 mAudioTrack.release();
             }
             else Log.w(TAG, "[releaseAudioRecordControls] mAudioTrack is null!!");
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] releaseAudioRecordControls()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -102,7 +113,7 @@ public class AudioRecordController {
 
                 mRecordingFile = new File(mRecordingFilePath);
                 if (mRecordingFile.exists()) {
-                    mRecordingFile.delete();
+                    FileDelete(mRecordingFile);
                 }
 
                 Thread recordStartThread = (new Thread() {
@@ -122,9 +133,12 @@ public class AudioRecordController {
 
                 mAudioRecord.startRecording();
                 mAudioTrack.play();
-            } catch (Exception e) {
+            } catch (RuntimeException re) {
+                LogUtil.errorLogInfo("", TAG, re);
+            } catch (Exception  e) {
                 Log.e(TAG, "[Exception] recordAndPlayStart()");
-                e.printStackTrace();
+                //e.printStackTrace();
+                LogUtil.errorLogInfo("", TAG, e);
             }
         }
     }
@@ -138,10 +152,21 @@ public class AudioRecordController {
 
                 mAudioRecord.stop();
                 mAudioTrack.pause();
-            } catch (Exception e) {
+            } catch (RuntimeException re) {
+                LogUtil.errorLogInfo("", TAG, re);
+            } catch (Exception  e) {
                 Log.e(TAG, "[Exception] recordAndPlayStop()");
-                e.printStackTrace();
+                //e.printStackTrace();
+                LogUtil.errorLogInfo("", TAG, e);
             }
         }
     }
+
+    private synchronized void FileDelete(File file)
+    {
+        if(file!=null && file.exists())
+        {
+            file.delete();
+        }
+    }
 }

+ 6 - 2
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/ConfigCleanLcdMainScreen.java

@@ -1,6 +1,7 @@
 package kr.co.icontrols.wallpadconfig.screen;
 
 import com.artncore.wallpadapi.WallPadAPI;
+import com.util.LogUtil;
 
 import android.app.Activity;
 import android.content.Context;
@@ -104,9 +105,12 @@ public class ConfigCleanLcdMainScreen extends WpadScreen{
 			};
 
 			mCountDownTimer.start();
-		} catch (Exception e) {
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
 			Log.e(TAG, "[Exception] startScreenCleanTimer()");
-			e.printStackTrace();
+			//e.printStackTrace();            
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 	}
 

+ 29 - 8
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/ConfigHandicappedModeScreen.java

@@ -2,6 +2,7 @@ package kr.co.icontrols.wallpadconfig.screen;
 
 import com.artncore.WallPadDataMgr.WallpadDeviceSet;
 import com.artncore.wallpadapi.WallPadAPI;
+import com.util.LogUtil;
 
 import android.content.Context;
 import android.content.Intent;
@@ -314,11 +315,16 @@ public class ConfigHandicappedModeScreen extends WpadScreen{
 		{
 			mWallpadDeviceSet = new WallpadDeviceSet(getContext());
 		}
-		catch(Exception e)
+		catch (RuntimeException re) {
+			LogUtil.errorLogInfo("", TAG, re);
+			return false;
+		}
+		catch (Exception e)
 		{
 			Log.e(TAG, "[DB_Open] [ExceptionError] - new WallpadDeviceSet");
 			mWallpadDeviceSet = null;
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 			return false;
 		}
 		return true;
@@ -335,11 +341,16 @@ public class ConfigHandicappedModeScreen extends WpadScreen{
 		{
 			if(mWallpadDeviceSet != null) mWallpadDeviceSet.closeDB();
 		}
-		catch(Exception e)
+		catch (RuntimeException re) {
+			LogUtil.errorLogInfo("", TAG, re);
+			return false;
+		}
+		catch (Exception e)
 		{
 			Log.e(TAG, "[DB_Close] [ExceptionError] - closeDB WallpadDeviceSet");
 			mWallpadDeviceSet = null;
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 			return false;
 		}
 		return true;
@@ -367,10 +378,15 @@ public class ConfigHandicappedModeScreen extends WpadScreen{
 		{
 			result = mWallpadDeviceSet.Get_Handicapped_Mode();
 		}
-		catch(Exception e)
+		catch (RuntimeException re) {
+			LogUtil.errorLogInfo("", TAG, re);
+			return -2;
+		}
+		catch (Exception e)
 		{
 			Log.e(TAG, "[ExceptionError] - DB_getHandicappedMode -> mWallpadDeviceSet.Get_Handicapped_Mode");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 			return -2;
 		}
 
@@ -445,10 +461,15 @@ public class ConfigHandicappedModeScreen extends WpadScreen{
 				return -3;
 			}
 		}
-		catch(Exception e)
+		catch (RuntimeException re) {
+			LogUtil.errorLogInfo("", TAG, re);
+			return -4;
+		}
+		catch (Exception e)
 		{
 			Log.e(TAG, "[ExceptionError] - DB_setHandicappedMode -> mWallpadDeviceSet.Set_Handicapped_Mode");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 			return -4;
 		}
 

+ 50 - 24
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/ConfigInRoomSensorMainScreen.java

@@ -12,6 +12,7 @@ import android.widget.RelativeLayout;
 import com.artncore.WallPadDataMgr.WallpadStatusData;
 import com.artncore.commons.define;
 import com.artncore.wallpadapi.WallPadAPI;
+import com.util.LogUtil;
 
 import java.util.HashMap;
 
@@ -404,9 +405,12 @@ public class ConfigInRoomSensorMainScreen extends WpadScreen
 					}
 				}
 			}
-			catch (Exception e)
-			{
-				e.printStackTrace();
+			catch (RuntimeException re) {
+				LogUtil.errorLogInfo("", TAG, re);
+			}
+			catch (Exception  e) {
+				//e.printStackTrace();
+            	LogUtil.errorLogInfo("", TAG, e);
 			}
 		}
 
@@ -551,9 +555,12 @@ public class ConfigInRoomSensorMainScreen extends WpadScreen
 			Log.d(TAG, Info_Userset.ToDebugString() );
 			Log.d(TAG, Info_ElecrangeSafe.ToDebugString() );
 		}
-		catch (Exception e)
-		{
-			e.printStackTrace();
+		catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+		catch (Exception  e) {
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 
 		// Background ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
@@ -1290,10 +1297,13 @@ public class ConfigInRoomSensorMainScreen extends WpadScreen
 			ELECRANGE_SAFE_RUNDATE.setText(Set_RunDate(ScreenMode.MODE_ELECRANGE_SAFE_SET));
 
 		}
-		catch (Exception e)
-		{
+		catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+		catch (Exception  e) {
 			Log.e(TAG, "[Draw_ScenarioSelect_Info] - Exception !!!");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 	}
 
@@ -1336,9 +1346,12 @@ public class ConfigInRoomSensorMainScreen extends WpadScreen
 			// 동작2 그리기
 			Draw_Setting_Act2(ScreenMode.MODE_NORMAL1_SET);
 		}
-		catch (Exception e)
-		{
-			e.printStackTrace();
+		catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+		catch (Exception  e) {
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 
 	}
@@ -1382,9 +1395,12 @@ public class ConfigInRoomSensorMainScreen extends WpadScreen
 			// 동작2 그리기
 			Draw_Setting_Act2(ScreenMode.MODE_NORMAL2_SET);
 		}
-		catch (Exception e)
-		{
-			e.printStackTrace();
+		catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+		catch (Exception  e) {
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 
 	}
@@ -1427,9 +1443,12 @@ public class ConfigInRoomSensorMainScreen extends WpadScreen
 			// 동작2 그리기
 			Draw_Setting_Act2(ScreenMode.MODE_USERSET_SET);
 		}
-		catch (Exception e)
-		{
-			e.printStackTrace();
+		catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+		catch (Exception  e) {
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 
 	}
@@ -1472,9 +1491,12 @@ public class ConfigInRoomSensorMainScreen extends WpadScreen
 			// 동작2 그리기
 			Draw_Setting_Act2(ScreenMode.MODE_ELECRANGE_SAFE_SET);
 		}
-		catch (Exception e)
-		{
-			e.printStackTrace();
+		catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+		catch (Exception  e) {
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 
 	}
@@ -2109,10 +2131,14 @@ public class ConfigInRoomSensorMainScreen extends WpadScreen
 
 					DrawUpdate(NowScreenMode);
 				}
-				catch (Exception ex)
-				{
+				catch (RuntimeException re) {
+					LogUtil.errorLogInfo("", TAG, re);
+					Sound().Play(SND.effect.TOUCH_UNLATCHED);
+				}
+				catch (Exception  ex) {
 					Log.e(TAG, "DETAIL_SAVE BUTTON EXCEPTION !!!");
-					ex.printStackTrace();
+					//ex.printStackTrace();
+					LogUtil.errorLogInfo("", TAG, ex);
 					Sound().Play(SND.effect.TOUCH_UNLATCHED);
 				}
 

+ 89 - 35
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/ConfigMobileDeviceAddScreen.java

@@ -22,6 +22,7 @@ import com.artncore.WallPadDataMgr.WallpadMobileDeviceData.MobileDeviceClass;
 import com.artncore.commons.define;
 import com.artncore.wallpadapi.WallPadAPI;
 import com.artncore.wallpadimap.RetProci;
+import com.util.LogUtil;
 
 import java.util.ArrayList;
 import java.util.List;
@@ -218,10 +219,14 @@ public class ConfigMobileDeviceAddScreen extends WpadScreen
                     listView[index].DateText.setText(RegDate);
                     listView[index].AreaBtn.setButtonEventOffDisable();
                 }
-                catch(Exception e)
-                {
+                catch (RuntimeException re) {
+                    LogUtil.errorLogInfo("", TAG, re);
+                    return false;
+                }
+                catch (Exception  e) {
                     Log.e(TAG, "[ChartView.Input] - [Exception Error]");
-                    e.printStackTrace();
+                    //e.printStackTrace();
+                    LogUtil.errorLogInfo("", TAG, e);
                     return false;
                 }
             }
@@ -748,11 +753,15 @@ public class ConfigMobileDeviceAddScreen extends WpadScreen
                     chartView.Input(i, index+1, mData.DataList.get(index).Name,
                             mData.DataList.get(index).regdate);
                 }
-                catch(Exception e)
-                {
+                catch (RuntimeException re) {
+                    LogUtil.errorLogInfo("", TAG, re);
+                    chartView.Input(i, 0, null, null);
+                }
+                catch (Exception  e) {
                     Log.e(TAG, "[ExceptionError] - Draw_ChartUpdate : " + e);
                     chartView.Input(i, 0, null, null);
-                    e.printStackTrace();
+                    //e.printStackTrace();
+                    LogUtil.errorLogInfo("", TAG, e);
                 }
             }
             else chartView.Input(i, 0, null, null);
@@ -776,9 +785,12 @@ public class ConfigMobileDeviceAddScreen extends WpadScreen
             intent.setAction(Common.BR.VISITOR_REMOTE_CALL);
             intent.putExtra(define.NOTIBR_KIND, define.NOTIFY_EVENT_REMOTECALL_USER_INITIALIZE);
             getContext().sendBroadcast(intent);
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] initRemoteCallLib()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -804,9 +816,12 @@ public class ConfigMobileDeviceAddScreen extends WpadScreen
                     Log.d(TAG, "[deleteCallUser] nRemoteCallUserCnt [" + nRemoteCallUserCnt + "]");
                 }
             }
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] deleteCallUser(String strPhoneKey)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -836,9 +851,12 @@ public class ConfigMobileDeviceAddScreen extends WpadScreen
                     else chartView.Disable();
                 }
             }
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] deleteCallUser(String strPhoneKey, String strUid)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -866,9 +884,12 @@ public class ConfigMobileDeviceAddScreen extends WpadScreen
                     DebugLogOutput("[deleteAllRemoteCallUser] - ProcDoing");
                 }
             });
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] deleteAllRemoteCallUser()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -879,9 +900,12 @@ public class ConfigMobileDeviceAddScreen extends WpadScreen
             IntentFilter filter = new IntentFilter();
             filter.addAction(Common.BR.VISITOR_REMOTE_CALL);
             getContext().registerReceiver(mRemoteCallBR, filter, null, null);
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] registerBRReceiver()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -890,9 +914,12 @@ public class ConfigMobileDeviceAddScreen extends WpadScreen
             if (mRemoteCallBR != null) {
                 getContext().unregisterReceiver(mRemoteCallBR);
             }
-        } catch (Exception e) {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
             Log.e(TAG, "[Exception] unregisterBRReceiver()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -932,9 +959,12 @@ public class ConfigMobileDeviceAddScreen extends WpadScreen
                         }
                     }
                 }
-            } catch (Exception e) {
+            } catch (RuntimeException re) {
+                LogUtil.errorLogInfo("", TAG, re);
+            } catch (Exception  e) {
                 Log.e(TAG, "[Exception] mRemoteCallBR.onReceive()");
-                e.printStackTrace();
+                //e.printStackTrace();
+                LogUtil.errorLogInfo("", TAG, e);
             }
         }
     };
@@ -964,12 +994,18 @@ public class ConfigMobileDeviceAddScreen extends WpadScreen
                 wallPadRemoteCallUserData = new WallPadRemoteCallUserData(getContext());
             }
         }
-        catch(Exception e)
-        {
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            wallpadMobileDeviceData = null;
+            wallPadRemoteCallUserData = null;
+            return false;
+        }
+        catch (Exception  e) {
             Log.e(TAG, "[DB_Open] [ExceptionError] - new wallpadMobileDeviceData / wallPadRemoteCallUserData");
             wallpadMobileDeviceData = null;
             wallPadRemoteCallUserData = null;
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
             return false;
         }
         return true;
@@ -987,12 +1023,18 @@ public class ConfigMobileDeviceAddScreen extends WpadScreen
             if(wallpadMobileDeviceData != null) wallpadMobileDeviceData.closeDB();
             if(wallPadRemoteCallUserData != null) wallPadRemoteCallUserData.closeDB();
         }
-        catch(Exception e)
-        {
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            wallpadMobileDeviceData = null;
+            wallPadRemoteCallUserData = null;
+            return false;
+        }
+        catch (Exception  e) {
             Log.e(TAG, "[DB_Close] [ExceptionError] - closeDB wallpadMobileDeviceData");
             wallpadMobileDeviceData = null;
             wallPadRemoteCallUserData = null;
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
             return false;
         }
         return true;
@@ -1025,10 +1067,14 @@ public class ConfigMobileDeviceAddScreen extends WpadScreen
         {
             mData.DataList = wallpadMobileDeviceData.GetMobileDeviceData();
         }
-        catch(Exception e)
-        {
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return false;
+        }
+        catch (Exception  e) {
             Log.e(TAG, "[ExceptionError] - DB_Load -> GetMobileDeviceData : " + e);
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
             return false;
         }
 
@@ -1069,10 +1115,14 @@ public class ConfigMobileDeviceAddScreen extends WpadScreen
         {
             wallpadMobileDeviceData.DeleteEachUid(Uid);
         }
-        catch(Exception e)
-        {
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return false;
+        }
+        catch (Exception  e) {
             Log.e(TAG, "[ExceptionError] - wallpadMobileDeviceData.DeleteEachUid");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
             return false;
         }
         return true;
@@ -1091,10 +1141,14 @@ public class ConfigMobileDeviceAddScreen extends WpadScreen
         {
             wallpadMobileDeviceData.UnRegisterAll();
         }
-        catch(Exception e)
-        {
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return false;
+        }
+        catch (Exception  e) {
             Log.e(TAG, "[ExceptionError] - wallpadSmartKeyRegData.UnRegisterAll");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
             return false;
         }
         return true;

+ 14 - 5
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/ConfigMoningCallMainScreen.java

@@ -139,7 +139,8 @@ public class ConfigMoningCallMainScreen extends WpadScreen {
 		}
 
 		public String GetCurrentItemText() {
-			return this.itemText[this.CurIdx];
+			String temp_item = this.itemText[this.CurIdx];
+			return temp_item;
 		}
 	}
 
@@ -245,7 +246,9 @@ public class ConfigMoningCallMainScreen extends WpadScreen {
 				Log.d(TAG, "[DB] ----				retTime : " + retTime);
 
 			}
-		} catch (Exception edb) {
+		} catch (RuntimeException re) {
+			Log.d(TAG, "[DB] --:" + re.toString());
+        } catch (Exception  edb) {
 			Log.d(TAG, "[DB] --:" + edb.toString());
 		}
 	}
@@ -339,7 +342,9 @@ public class ConfigMoningCallMainScreen extends WpadScreen {
 					WallpadStatusData wd = new WallpadStatusData(this.getContext());
 					wd.SetMorningCallBell(SelItem[3].CurIdx);
 					wd.closeDB();
-				} catch (Exception e) {
+				} catch (RuntimeException re) {
+					Log.d(TAG, "[Exception =>  " + re.toString());
+				} catch (Exception  e) {
 					Log.e(TAG, "[Exception =>  " + e.toString());
 				}
 			} else if (TargetId == MoningCallMainID.button.LEFT_05 || TargetId == MoningCallMainID.button.RIGHT_05) {
@@ -374,7 +379,9 @@ public class ConfigMoningCallMainScreen extends WpadScreen {
 						wd.DeleteMorningCallReserve(WallpadStatusData.MCALLR_LIGHT_ON);
 					}
 					wd.closeDB();
-				} catch (Exception e) {
+				} catch (RuntimeException re) {
+					Log.e(TAG, "[Exception =>  " + re.toString());
+				} catch (Exception  e) {
 					Log.e(TAG, "[Exception =>  " + e.toString());
 				}
 			} else if (TargetId == MoningCallMainID.button.LEFT_06 || TargetId == MoningCallMainID.button.RIGHT_06) {
@@ -410,7 +417,9 @@ public class ConfigMoningCallMainScreen extends WpadScreen {
 						wd.DeleteMorningCallReserve(WallpadStatusData.MCALLR_VENTIL_ON);
 					}
 					wd.closeDB();
-				} catch (Exception e) {
+				} catch (RuntimeException re) {
+					Log.e(TAG, "[Exception =>  " + re.toString());
+				} catch (Exception  e) {
 					Log.e(TAG, "[Exception =>  " + e.toString());
 				}
 			}

+ 27 - 11
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/ConfigPwChangeMainScreen.java

@@ -5,6 +5,7 @@ import com.artncore.WallPadDataMgr.WallpadStatusData;
 import com.artncore.WallPadDataMgr.wallpaddbmgr;
 import com.artncore.wallpadapi.SdbAPI;
 import com.artncore.wallpadapi.WallPadAPI;
+import com.util.LogUtil;
 
 import android.content.Context;
 import android.graphics.Color;
@@ -150,7 +151,9 @@ public class ConfigPwChangeMainScreen extends WpadScreen{
 			}
 
 			m_State = PwState.CUR_PW_INPUT;
-		} catch (Exception e) {
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception  e) {
 			Log.d(TAG, "[Exception]-" + e.toString());
 		}
 	}
@@ -301,8 +304,11 @@ public class ConfigPwChangeMainScreen extends WpadScreen{
 								Sound().PlayMent(SND.setting.RETRY_INPUT);
 							}
 						}
-					} catch (Exception e) {
-						e.printStackTrace();
+					} catch (RuntimeException re) {
+						LogUtil.errorLogInfo("", TAG, re);
+					} catch (Exception  e) {
+						//e.printStackTrace();
+            			LogUtil.errorLogInfo("", TAG, e);
 					}
 				}
 				else if (m_State == PwState.CHANGE_PW_CONFIRM)
@@ -451,10 +457,14 @@ public class ConfigPwChangeMainScreen extends WpadScreen{
 
 			return true;
 		}
-		catch (Exception e)
-		{
+		catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return false;
+        }
+		catch (Exception  e) {
 			Log.e(TAG, "[Exception] checkPWValidation(String strPW)");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 			return false;
 		}
 	}
@@ -475,8 +485,11 @@ public class ConfigPwChangeMainScreen extends WpadScreen{
 				Log.d(TAG, "[CurrentPassWord]" + CurrentPassWord);
 				wd.closeDB();
 			}
-		}catch( Exception e )
-		{
+		}
+		catch (RuntimeException re) {
+			LogUtil.errorLogInfo("", TAG, re);
+		}
+		catch( Exception e ) {
 			Log.d(TAG, "[Exception]" + e.toString());
 		}
 
@@ -521,9 +534,12 @@ public class ConfigPwChangeMainScreen extends WpadScreen{
 				}
 			}
 		}
-		catch (Exception e)
-		{
-			e.printStackTrace();
+		catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+		catch (Exception  e) {
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 	}
 

+ 56 - 27
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/ConfigRfCardMainScreen.java

@@ -22,6 +22,7 @@ import android.view.WindowManager;
 import android.widget.RelativeLayout;
 
 import com.artncore.WallPadDataMgr.WallpadRFCardData.RfCardDataClass;
+import com.util.LogUtil;
 
 import kr.co.icontrols.wallpadconfig.MainActivity;
 import kr.co.icontrols.wallpadconfig.R;
@@ -219,11 +220,15 @@ public class ConfigRfCardMainScreen extends WpadScreen{
 							String.format("%d-%d-%d  %s%d:%d", Cal.get(Calendar.YEAR), Cal.get(Calendar.MONTH) + 1, Cal.get(Calendar.DAY_OF_MONTH), AmPmStr, Cal.get(Calendar.HOUR), Cal.get(Calendar.MINUTE)) );
 					listView[index].AreaBtn.setButtonEventOffDisable();
 				}
-				catch(Exception e)
-				{
+				catch (RuntimeException re) {
+					LogUtil.errorLogInfo("", TAG, re);
+					return false;
+				}
+				catch (Exception e) {
 					Log.e(TAG, "[ChartView.Input] - [Exception Error]");
 					Log.e(TAG, "[ChartView.Input] - " + e.toString());
-					e.printStackTrace();
+					//e.printStackTrace();
+            		LogUtil.errorLogInfo("", TAG, e);
 					return false;
 				}
 			}
@@ -483,7 +488,7 @@ public class ConfigRfCardMainScreen extends WpadScreen{
 						DB_DelData((byte)(Number-1));
 						DB_Load();
 
-						if(mData.RfCardDataList.size() > 0)
+						if(mData.RfCardDataList!=null && mData.RfCardDataList.size() > 0)
 						{
 							mData.CurPageIdx = 0;
 							chartView.Enable(0);
@@ -510,16 +515,20 @@ public class ConfigRfCardMainScreen extends WpadScreen{
 				{
 					DB_Load();
 
-					int size = mData.RfCardDataList.size();
-					if(size > 0)
+					if(mData.RfCardDataList!=null)
 					{
-						mData.CurPageIdx = mData.MaxPageIdx;
-						int EnableIdx = (mData.RfCardDataList.size()-1) - (mData.CurPageIdx * ChartView.ROWS_COUNT);
-						chartView.Enable(EnableIdx);
+						int size = mData.RfCardDataList.size();
+						if(size > 0)
+						{
+							mData.CurPageIdx = mData.MaxPageIdx;
+							int EnableIdx = (mData.RfCardDataList.size()-1) - (mData.CurPageIdx * ChartView.ROWS_COUNT);
+							chartView.Enable(EnableIdx);
+						}
+						else chartView.Disable();
+
+						Draw_Update();
 					}
-					else chartView.Disable();
 
-					Draw_Update();
 				}
 			}
 		}
@@ -682,7 +691,7 @@ public class ConfigRfCardMainScreen extends WpadScreen{
 		if(mData.RfCardDataList.size() == 0)
 		{
 			DelBtn.setButtonEventOffEnable(R.drawable.btn_del_disabled);
-			AllDelBtn.setButtonEventOffEnable(R.drawable.btn_all_del_disabled); //변경필요
+			AllDelBtn.setButtonEventOffEnable(R.drawable.btn_all_del_disabled); //disable이미지 변경
 		}
 		else
 		{
@@ -727,11 +736,15 @@ public class ConfigRfCardMainScreen extends WpadScreen{
 					chartView.Input(i, index+1, mData.RfCardDataList.get(index).CardData,
 							mData.RfCardDataList.get(index).Cal);
 				}
-				catch(Exception e)
-				{
+				catch (RuntimeException re) {
+					LogUtil.errorLogInfo("", TAG, re);
+					chartView.Input(i, 0, null, null);
+				}
+				catch (Exception e) {
 					Log.e(TAG, "[ExceptionError] - Draw_ChartUpdate : " + e);
 					chartView.Input(i, 0, null, null);
-					e.printStackTrace();
+					//e.printStackTrace();
+            		LogUtil.errorLogInfo("", TAG, e);
 				}
 			}
 			else chartView.Input(i, 0, null, null);
@@ -762,10 +775,14 @@ public class ConfigRfCardMainScreen extends WpadScreen{
 			mData.RfCardDataList = WpadRFCardData.GetRfCardData();
 			WpadRFCardData.closeDB();
 		}
-		catch(Exception e)
-		{
+		catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+			return false;
+        }
+		catch (Exception e) {
 			Log.e(TAG, "[ExceptionError] - DB_Load -> SetSaveRfCardData : " + e);
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 			return false;
 		}
 
@@ -834,10 +851,14 @@ public class ConfigRfCardMainScreen extends WpadScreen{
 				return false;
 			}
 		}
-		catch(Exception e)
-		{
+		catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+			return false;
+        }
+		catch (Exception e) {
 			Log.e(TAG, "[ExceptionError] - DB_SaveData -> SetSaveRfCardData : " + e);
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 			return false;
 		}
 
@@ -868,10 +889,14 @@ public class ConfigRfCardMainScreen extends WpadScreen{
 				return false;
 			}
 		}
-		catch(Exception e)
-		{
+		catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+			return false;
+        }
+		catch (Exception e) {
 			Log.e(TAG, "[ExceptionError] - DB_DelData -> SetDelRfCardData : " + e);
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 			return false;
 		}
 
@@ -892,10 +917,14 @@ public class ConfigRfCardMainScreen extends WpadScreen{
 			WpadRFCardData.closeDB();
 			return Count;
 		}
-		catch(Exception e)
-		{
+		catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+			return -1000;
+        }
+		catch (Exception e) {
 			Log.e(TAG, "[WpadRFCardData] - [Exception Error] ");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 			return -1000;
 		}
 	}

+ 173 - 68
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/ConfigSettingMainScreen.java

@@ -29,6 +29,7 @@ import com.artncore.wallpadapi.KnxAPI;
 import com.artncore.wallpadapi.SdbAPI;
 import com.artncore.wallpadapi.SmartKeyRfDoorAPI;
 import com.artncore.wallpadapi.WallPadAPI;
+import com.util.LogUtil;
 
 import java.util.ArrayList;
 import java.util.List;
@@ -281,6 +282,7 @@ public class ConfigSettingMainScreen extends WpadScreen {
 			int getSleepTime = Settings.System.getInt(this.getContext().getContentResolver(), SCREEN_OFF_TIMEOUT);
 			Log.d(TAG, "[initInfo] getSleepTime : " + getSleepTime);
 			mSleepModeTime = (getSleepTime/1000);
+			if (mSleepModeTime < MIN_SLEEP_TIME) mSleepModeTime = MIN_SLEEP_TIME;
 
 			int getBrightness = Settings.System.getInt(this.getContext().getContentResolver(), "screen_brightness");
 
@@ -475,9 +477,12 @@ public class ConfigSettingMainScreen extends WpadScreen {
 
 			//setting_manual_str += "ToTalPage:" + m_ToTalPage + "/";
 
-		} catch (Exception e) {
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception e) {
 			Log.e(TAG, "[Exception] initInfo()");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 	}
 
@@ -540,9 +545,12 @@ public class ConfigSettingMainScreen extends WpadScreen {
 					Btn_Popup[i] = null;
 				}
 			}
-		} catch (Exception e) {
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception e) {
 			Log.e(TAG, "[Exception] DrawContentsPage(int page) 1");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 
 		try {
@@ -664,8 +672,11 @@ public class ConfigSettingMainScreen extends WpadScreen {
 							if (EmListIndex == 2) { EmListIndex = 0; }
 
 							SettingData.get(i).SetViewIdx(arrayIdx);
+						} catch (RuntimeException re) {
+							LogUtil.errorLogInfo("", TAG, re);
 						} catch (Exception ee) {
-							ee.printStackTrace();
+							//ee.printStackTrace();
+            				LogUtil.errorLogInfo("", TAG, ee);
 						}
 					}
 					else {
@@ -709,8 +720,11 @@ public class ConfigSettingMainScreen extends WpadScreen {
 							if(EmListIndex == 2) { EmListIndex = 0; }
 
 							SettingData.get(i).SetViewIdx(arrayIdx);
+						} catch (RuntimeException re) {
+							LogUtil.errorLogInfo("", TAG, re);
 						} catch (Exception ee) {
-							ee.printStackTrace();
+							//ee.printStackTrace();
+            				LogUtil.errorLogInfo("", TAG, ee);
 						}
 					}
 					else {
@@ -828,9 +842,12 @@ public class ConfigSettingMainScreen extends WpadScreen {
 				Btn_PrevPage.setButtonEventOffDisable();
 				Btn_NextPage.setButtonEventOffDisable();
 			}
-		} catch (Exception e) {
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception e) {
 			Log.e(TAG, "[Exception] DrawContentsPage(int page) 2");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 	}
 
@@ -1060,8 +1077,11 @@ public class ConfigSettingMainScreen extends WpadScreen {
 												Log.i(TAG, "Don't BATH NON ADD ~~~~~~~");
 											}
 										}
-									} catch(Exception e) {
-										e.printStackTrace();
+									} catch (RuntimeException re) {
+										LogUtil.errorLogInfo("", TAG, re);
+									} catch (Exception e) {
+										//e.printStackTrace();
+            							LogUtil.errorLogInfo("", TAG, e);
 									}
 								}
 								else {
@@ -1082,8 +1102,11 @@ public class ConfigSettingMainScreen extends WpadScreen {
 					else {
 						Log.w(TAG, "[mSensorLightCheckHandler] mWallPadAPI is null!!");
 					}
-				} catch(Exception e) {
-					e.printStackTrace();
+				} catch (RuntimeException re) {
+					LogUtil.errorLogInfo("", TAG, re);
+				} catch (Exception e) {
+					//e.printStackTrace();
+            		LogUtil.errorLogInfo("", TAG, e);
 				}
 			}
 			else if (msg.what == 1) {
@@ -1106,8 +1129,11 @@ public class ConfigSettingMainScreen extends WpadScreen {
 							mPhoneLightCtrUse = true;
 						}
 					}
-				} catch(Exception ex) {
-					ex.printStackTrace();
+				} catch (RuntimeException re) {
+					LogUtil.errorLogInfo("", TAG, re);
+				} catch (Exception ex) {
+					//ex.printStackTrace();
+					LogUtil.errorLogInfo("", TAG,ex);
 				}
 
 				SetKind data = new SetKind(TYPE_BUTTON , ConfingSettingMainID.button.AS_CALL , 0 , TXT_AS_CALL );
@@ -1163,8 +1189,11 @@ public class ConfigSettingMainScreen extends WpadScreen {
 	protected void onClose() {
 		try {
 			mSensorLightCheckHandler.removeMessages(0);
-		} catch (Exception ee) {
-			ee.printStackTrace();
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception ee) {
+			//ee.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, ee);
 		}
 
 		super.onClose();
@@ -1524,9 +1553,12 @@ public class ConfigSettingMainScreen extends WpadScreen {
 					runWallPadReboot();
 				}
 			}
-		} catch (Exception e) {
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception e) {
 			Log.e(TAG, "[Exception] onPopupResult(Intent data)");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 	}
 
@@ -1579,9 +1611,12 @@ public class ConfigSettingMainScreen extends WpadScreen {
 			else {
 				Log.w(TAG, "[GetDBConfigInitValue] mWallpadStatusData is null!!");
 			}
-		} catch (Exception e) {
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception e) {
 			Log.e(TAG, "[Exception] GetDBConfigInitValue()");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 	}
 
@@ -1608,9 +1643,12 @@ public class ConfigSettingMainScreen extends WpadScreen {
 			else {
 				Log.w(TAG, "[SaveConfigDB] mWallpadStatusData is null!!");
 			}
-		} catch (Exception e) {
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception e) {
 			Log.e(TAG, "[Exception] SaveConfigDB()");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 	}
 
@@ -1644,9 +1682,12 @@ public class ConfigSettingMainScreen extends WpadScreen {
 
 			//Log.i(TAG, "Change : " + smartKeyRfDoorAPI.SetSensorConfig((byte)mVolumeLevel, (byte)(mVolumeLevel*2) ) );
 			//Log.i(TAG, "Setting : " + smartKeyRfDoorAPI.SetSensorConfig((byte)0xFF, (byte)0xFF) );
-		} catch(Exception e) {
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception e) {
 			Log.e(TAG, "[Exception] ChangeVolumeLevel(boolean Up)");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 		// DB Save
 	}
@@ -1666,9 +1707,12 @@ public class ConfigSettingMainScreen extends WpadScreen {
 				Btn_Right[idx].setButtonFrontImage();
 				Btn_Left[idx].setButtonFrontImage();
 			}
-		} catch(Exception e) {
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception e) {
 			Log.e(TAG, "[Exception] DrawVolumeLevel(int level)");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 	}
 
@@ -1696,7 +1740,7 @@ public class ConfigSettingMainScreen extends WpadScreen {
 			}
 
 			if (soundOn) {
-				Sound().Play(SND.effect.TOUCH_LATCHED);
+//				Sound().Play(SND.effect.TOUCH_LATCHED);
 				DrawCloseSensorLevel(mCloseSensorLevel);
 
 				int closeValue = 15;
@@ -1730,9 +1774,12 @@ public class ConfigSettingMainScreen extends WpadScreen {
 				Log.d(TAG, "[ChangeCloseSensorLevel] - db saved : " + wd.GetCloseSensorValue());
 				wd.closeDB();
 			}
-		} catch(Exception e) {
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception e) {
 			Log.e(TAG, "[Exception] ChangeCloseSensorLevel(boolean Up)");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 	}
 	private void DrawCloseSensorLevel(int level) {
@@ -1750,18 +1797,24 @@ public class ConfigSettingMainScreen extends WpadScreen {
 				Btn_Right[idx].setButtonFrontImage();
 				Btn_Left[idx].setButtonFrontImage();
 			}
-		} catch (Exception e) {
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception e) {
 			Log.e(TAG, "[Exception] DrawCloseSensorLevel(int level)");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 	}
 
 	private void DrawSensorLightCheck(byte index, boolean onoff) {
 		try {
 
-		} catch (Exception e) {
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception e) {
 			Log.e(TAG,"[Exception] DrawSensorLightCheck(byte index, boolean onoff)");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 	}
 
@@ -1808,9 +1861,12 @@ public class ConfigSettingMainScreen extends WpadScreen {
 				Btn_Right[idx].setButtonFrontImage();
 				Btn_Left[idx].setButtonFrontImage();
 			}
-		} catch (Exception e) {
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception e) {
 			Log.e(TAG,"[Exception] DrawLcdLevel(int level)");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 	}
 
@@ -1838,9 +1894,12 @@ public class ConfigSettingMainScreen extends WpadScreen {
 			}
 
 			DrawButtonLightLevel(mButtonLightLevel);
-		} catch (Exception e) {
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception e) {
 			Log.e(TAG,"[Exception] ChangeButtonLightLevel(boolean Up)");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 	}
 
@@ -1859,9 +1918,12 @@ public class ConfigSettingMainScreen extends WpadScreen {
 				Btn_Right[idx].setButtonFrontImage();
 				Btn_Left[idx].setButtonFrontImage();
 			}
-		} catch (Exception e) {
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception e) {
 			Log.e(TAG,"[Exception] DrawButtonLightLevel(int level)");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 	}
 
@@ -1885,12 +1947,16 @@ public class ConfigSettingMainScreen extends WpadScreen {
 			}
 			DrawSleepTime(mSleepModeTime);
 
-			Settings.System.putInt( this.getContext().getContentResolver(), SCREEN_OFF_TIMEOUT, mSleepModeTime * 1000);
+			if (mSleepModeTime == 30) Settings.System.putInt( this.getContext().getContentResolver(), SCREEN_OFF_TIMEOUT, 28 * 1000); // 백라이트 off와 앱 종료가 동시에 일어나면 월패드가 비정상 종료되므로 수정 (2021.04.01 메이드인랩 김수진 선임 요청)
+			else Settings.System.putInt( this.getContext().getContentResolver(), SCREEN_OFF_TIMEOUT, mSleepModeTime * 1000);
 			int getSleepTime = Settings.System.getInt(this.getContext().getContentResolver(), SCREEN_OFF_TIMEOUT);
 			Log.d(TAG, "[ChangeSleepTime] getSleepTime : " + getSleepTime);
-		} catch (Exception e) {
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception e) {
 			Log.e(TAG, "[Exception] ChangeSleepTime(boolean Up)");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 	}
 
@@ -1910,9 +1976,12 @@ public class ConfigSettingMainScreen extends WpadScreen {
 				Btn_Right[idx].setButtonFrontImage();
 				Btn_Left[idx].setButtonFrontImage();
 			}
-		} catch (Exception e) {
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception e) {
 			Log.e(TAG, "[Exception] DrawSleepTime(int Time)");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 	}
 
@@ -1942,9 +2011,12 @@ public class ConfigSettingMainScreen extends WpadScreen {
 				UseCheckBoxAgrray[idx].setImageResource(UseCheckBoxAgrray[idx].getDefaultImageID());
 				NotUseCheckBoxAgrray[idx].setImageResource(NotUseCheckBoxAgrray[idx].getPressedImageID());
 			}
-		} catch (Exception e) {
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception e) {
 			Log.e(TAG, "[Exception] DrawAlramSound(boolean value)");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 	}
 
@@ -1966,9 +2038,12 @@ public class ConfigSettingMainScreen extends WpadScreen {
 				UseCheckBoxAgrray[idx].setImageResource(UseCheckBoxAgrray[idx].getDefaultImageID());
 				NotUseCheckBoxAgrray[idx].setImageResource(NotUseCheckBoxAgrray[idx].getPressedImageID());
 			}
-		} catch (Exception e) {
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception e) {
 			Log.e(TAG, "[Exception] DrawSensorLight_Share(boolean value, String selecName, String EMname)");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 	}
 
@@ -1996,9 +2071,12 @@ public class ConfigSettingMainScreen extends WpadScreen {
 				UseCheckBoxAgrray[idx].setImageResource(UseCheckBoxAgrray[idx].getDefaultImageID());
 				NotUseCheckBoxAgrray[idx].setImageResource(NotUseCheckBoxAgrray[idx].getPressedImageID());
 			}
-		} catch (Exception e) {
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception e) {
 			Log.e(TAG, "[Exception] DrawSensorLight_Couple(boolean value, String selecName, String EMname)");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 	}
 
@@ -2026,9 +2104,12 @@ public class ConfigSettingMainScreen extends WpadScreen {
 				UseCheckBoxAgrray[idx].setImageResource(UseCheckBoxAgrray[idx].getDefaultImageID());
 				NotUseCheckBoxAgrray[idx].setImageResource(NotUseCheckBoxAgrray[idx].getPressedImageID());
 			}
-		} catch (Exception e) {
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception e) {
 			Log.e(TAG, "[Exception] DrawCarAlarmSound(boolean value)");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 	}
 
@@ -2056,9 +2137,12 @@ public class ConfigSettingMainScreen extends WpadScreen {
 				UseCheckBoxAgrray[idx].setImageResource(UseCheckBoxAgrray[idx].getDefaultImageID());
 				NotUseCheckBoxAgrray[idx].setImageResource(NotUseCheckBoxAgrray[idx].getPressedImageID());
 			}
-		} catch (Exception e) {
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception e) {
 			Log.e(TAG, "[Exception] DrawCallAlarmSound(boolean value)");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 	}
 
@@ -2086,9 +2170,12 @@ public class ConfigSettingMainScreen extends WpadScreen {
 				UseCheckBoxAgrray[idx].setImageResource(UseCheckBoxAgrray[idx].getDefaultImageID());
 				NotUseCheckBoxAgrray[idx].setImageResource(NotUseCheckBoxAgrray[idx].getPressedImageID());
 			}
-		} catch (Exception e) {
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception e) {
 			Log.e(TAG, "[Exception] DrawBandLocAlarm(boolean value)");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 	}
 
@@ -2115,9 +2202,12 @@ public class ConfigSettingMainScreen extends WpadScreen {
 				UseCheckBoxAgrray[idx].setButtonEventOffEnable();
 				NotUseCheckBoxAgrray[idx].setButtonEventOffEnable();
 			}
-		} catch (Exception e) {
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception e) {
 			Log.e(TAG, "[Exception] DrawEasyMode(boolean value, boolean bTouch)");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 	}
 
@@ -2145,9 +2235,12 @@ public class ConfigSettingMainScreen extends WpadScreen {
 				UseCheckBoxAgrray[idx].setImageResource(UseCheckBoxAgrray[idx].getDefaultImageID());
 				NotUseCheckBoxAgrray[idx].setImageResource(NotUseCheckBoxAgrray[idx].getPressedImageID());
 			}
-		} catch (Exception e) {
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception e) {
 			Log.e(TAG, "[Exception] DrawNoisePopupUse(boolean value)");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 	}
 
@@ -2222,9 +2315,12 @@ public class ConfigSettingMainScreen extends WpadScreen {
 					NotUseCheckBoxAgrray[idx].setImageResource(NotUseCheckBoxAgrray[idx].getPressedImageID());
 				}
 			}
-		} catch (Exception e) {
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception e) {
 			Log.e(TAG, "[Exception] DrawPhoneLightCtrUse(boolean value)");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 	}
 
@@ -2253,9 +2349,12 @@ public class ConfigSettingMainScreen extends WpadScreen {
 				UseCheckBoxAgrray[idx].setImageResource(UseCheckBoxAgrray[idx].getDefaultImageID());
 				NotUseCheckBoxAgrray[idx].setImageResource(NotUseCheckBoxAgrray[idx].getPressedImageID());
 			}
-		} catch (Exception e) {
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception e) {
 			Log.e(TAG, "[Exception] DrawARSControl(boolean value)");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 	}
 
@@ -2283,9 +2382,12 @@ public class ConfigSettingMainScreen extends WpadScreen {
 				UseCheckBoxAgrray[idx].setImageResource(UseCheckBoxAgrray[idx].getDefaultImageID());
 				NotUseCheckBoxAgrray[idx].setImageResource(NotUseCheckBoxAgrray[idx].getPressedImageID());
 			}
-		} catch (Exception e) {
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception e) {
 			Log.e(TAG, "[Exception] DrawRemoteControl(boolean value)");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 	}
 
@@ -2311,9 +2413,12 @@ public class ConfigSettingMainScreen extends WpadScreen {
 			else {
 				Log.w(TAG, "[runWallPadReboot] Not Supported PlatformType [" + Version.getPlatformType() + "]");
 			}
-		} catch (Exception e) {
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception e) {
 			Log.e(TAG, "[Exception] runWallPadReboot()");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 	}
 }

+ 8 - 4
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/ConfigSkinChangeScreen.java

@@ -92,8 +92,10 @@ public class ConfigSkinChangeScreen extends WpadScreen{
 				Log.d(TAG, "[DB] ----CurrentBgPaht : " + CurrentBgPath  + " , CurrentBgType : " + CurrentBgType );
 			}
 		}
-		catch( Exception edb)
-		{
+		catch (RuntimeException re) {
+			Log.d(TAG, "[DB] --:" + re.toString());
+        }
+		catch (Exception edb) {
 			Log.d(TAG, "[DB] --:" + edb.toString());
 		}
 	}
@@ -149,8 +151,10 @@ public class ConfigSkinChangeScreen extends WpadScreen{
 			WallpadStatusData wdb = new WallpadStatusData(this.getContext());
 			wdb.SetMainBG( 1 , m_MainSkin);
 			wdb.closeDB();
-		}catch( Exception edb )
-		{
+		} catch (RuntimeException re) {
+			Log.d(TAG, "[DB] ---Exception: " + re.toString());
+        }
+		catch (Exception edb ) {
 			Log.d(TAG, "[DB] ---Exception: " + edb.toString());
 		}
 	}

+ 85 - 36
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/ConfigSmartKeyMainScreen.java

@@ -5,6 +5,7 @@ import com.artncore.WallPadDataMgr.WallpadSmartKeyRegData;
 import com.artncore.wallpadapi.SmartKeyRfDoorAPI;
 import com.artncore.wallpadapi.WallPadAPI;
 import com.artncore.wallpadimap.RetProci;
+import com.util.LogUtil;
 
 import java.util.Calendar;
 import java.util.List;
@@ -214,10 +215,14 @@ public class ConfigSmartKeyMainScreen extends WpadScreen{
 									Cal.get(Calendar.HOUR_OF_DAY), Cal.get(Calendar.MINUTE), Cal.get(Calendar.SECOND) ));
 					listView[index].AreaBtn.setButtonEventOffDisable();
 				}
-				catch(Exception e)
-				{
+				catch (RuntimeException re) {
+					LogUtil.errorLogInfo("", TAG, re);
+					return false;
+				}
+				catch (Exception e) {
 					Log.e(TAG, "[ChartView.Input] - [Exception Error]");
-					e.printStackTrace();
+					//e.printStackTrace();
+            		LogUtil.errorLogInfo("", TAG, e);
 					return false;
 				}
 			}
@@ -380,7 +385,11 @@ public class ConfigSmartKeyMainScreen extends WpadScreen{
 		//     7.1. update
 		Draw_Update();
 		if(mData.DataList.size() > 0) chartView.Enable(0);
-        
+		else if(mData.DataList.size() == 0) {
+			int ret = Device_DeleteKey(true, 0); // 월패드 DB에 등록된 스마트키가 없을 경우, 현관카메라로 전체 삭제 패킷 1회 내려주기 (2021.02.24 임영인M 요청)
+			if (ret < 0) Log.w(TAG, "[Create] Device_DeleteKey - Error (" + ret + ")");
+		}
+
         Log.d(TAG, "[END - Screen] --------------------------------------------");
 	}
 	
@@ -672,8 +681,8 @@ public class ConfigSmartKeyMainScreen extends WpadScreen{
 		if(mData.DataList.size() == 0)
 		{
 			DelBtn.setButtonEventOffEnable(R.drawable.call_list_btn_del_disabled);
-			AllDelBtn.setButtonEventOffEnable(R.drawable.call_list_btn_all_del_disabled); //disable이미지 변경
-		}
+//            AllDelBtn.setButtonEventOffEnable(R.drawable.call_list_btn_all_del_disabled); // 등록된 스마트키가 없는 경우에도 초기화를 위해 활성화 (2021.02.24 임영인M 요청)
+        }
 		else
 		{
 			DelBtn.setButtonEventOffDisable();
@@ -719,11 +728,15 @@ public class ConfigSmartKeyMainScreen extends WpadScreen{
 					chartView.Input(i, index+1, mData.DataList.get(index).SerialNumber,
 							mData.DataList.get(index).LastUseDateCal);
 				}
-				catch(Exception e)
-				{
+				catch (RuntimeException re) {
+					LogUtil.errorLogInfo("", TAG, re);
+					chartView.Input(i, 0, null, null);
+				}
+				catch (Exception e) {
 					Log.e(TAG, "[ExceptionError] - Draw_ChartUpdate : " + e);
 					chartView.Input(i, 0, null, null);
-					e.printStackTrace();
+					//e.printStackTrace();
+            		LogUtil.errorLogInfo("", TAG, e);
 				}
 			}
 			else chartView.Input(i, 0, null, null);
@@ -764,10 +777,14 @@ public class ConfigSmartKeyMainScreen extends WpadScreen{
 		{
 			smartKeyRfDoorAPI = mWpapi.Get_SmartKeyRfDoorController();
 		}
-		catch(Exception e)
-		{
+		catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+			return -100;
+        }
+		catch (Exception e) {
 			Log.e(TAG, "[Device_SetRegisterModeStart] - [Exception Error] wpapi.Get_SmartKeyRfDoorController");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 			return -100;
 		}
 		if(smartKeyRfDoorAPI == null)
@@ -787,11 +804,15 @@ public class ConfigSmartKeyMainScreen extends WpadScreen{
 				return -2;
 			}
 		}
-		catch(Exception e)
-		{
+		catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+			return -100;
+        }
+		catch (Exception e) {
 			Log.e(TAG, "[Device_SetRegisterModeStart] - [Exception Error] smartKeyRfDoorAPI.SetRegisterModeStart()");
 			Log.e(TAG, "[Device_SetRegisterModeStart] - " + e.toString());
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 			return -100;
 		}
 
@@ -828,10 +849,14 @@ public class ConfigSmartKeyMainScreen extends WpadScreen{
 		{
 			smartKeyRfDoorAPI = mWpapi.Get_SmartKeyRfDoorController();
 		}
-		catch(Exception e)
-		{
+		catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+			return -100;
+        }
+		catch (Exception e) {
 			Log.e(TAG, "[Device_DeleteKey] - [Exception Error] wpapi.Get_SmartKeyRfDoorController");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 			return -100;
 		}
 		if(smartKeyRfDoorAPI == null)
@@ -851,11 +876,15 @@ public class ConfigSmartKeyMainScreen extends WpadScreen{
 				return -2;
 			}
 		}
-		catch(Exception e)
-		{
+		catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+			return -100;
+        }
+		catch (Exception e) {
 			Log.e(TAG, "[Device_DeleteKey] - [Exception Error] smartKeyRfDoorAPI.Device_DeleteKey()");
 			Log.e(TAG, "[Device_DeleteKey] - " + e.toString());
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 			return -100;
 		}
 
@@ -879,11 +908,15 @@ public class ConfigSmartKeyMainScreen extends WpadScreen{
 		{
 			wallpadSmartKeyRegData = new WallpadSmartKeyRegData(getContext());
 		}
-		catch(Exception e)
-		{
+		catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return false;
+        }
+		catch (Exception e) {
 			Log.e(TAG, "[DB_Open] [ExceptionError] - new wallpadSmartKeyRegData");
 			wallpadSmartKeyRegData = null;
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 			return false;
 		}
 		return true;
@@ -900,11 +933,15 @@ public class ConfigSmartKeyMainScreen extends WpadScreen{
 		{
 			if(wallpadSmartKeyRegData != null) wallpadSmartKeyRegData.closeDB();
 		}
-		catch(Exception e)
-		{
+		catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return false;
+        }
+		catch (Exception e) {
 			Log.e(TAG, "[DB_Close] [ExceptionError] - closeDB wallpadSmartKeyRegData");
 			wallpadSmartKeyRegData = null;
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 			return false;
 		}
 		return true;
@@ -929,10 +966,14 @@ public class ConfigSmartKeyMainScreen extends WpadScreen{
 		{
 			mData.DataList = wallpadSmartKeyRegData.GetSmartKeyRegData();
 		}
-		catch(Exception e)
-		{
+		catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return false;
+        }
+		catch (Exception e) {
 			Log.e(TAG, "[ExceptionError] - DB_Load -> SetSaveRfCardData : " + e);
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 			return false;
 		}
 
@@ -996,10 +1037,14 @@ public class ConfigSmartKeyMainScreen extends WpadScreen{
 				return false;
 			}
 		}
-		catch(Exception e)
-		{
+		catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return false;
+        }
+		catch (Exception e) {
 			Log.e(TAG, "[ExceptionError] - wallpadSmartKeyRegData.UnRegister");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 			return false;
 		}
 
@@ -1035,10 +1080,14 @@ public class ConfigSmartKeyMainScreen extends WpadScreen{
 				return false;
 			}
 		}
-		catch(Exception e)
-		{
+		catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return false;
+        }
+		catch (Exception e) {
 			Log.e(TAG, "[ExceptionError] - wallpadSmartKeyRegData.UnRegisterAll");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 			return false;
 		}
 

+ 7 - 2
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/ConfigTimeSetScreen.java

@@ -2,6 +2,8 @@ package kr.co.icontrols.wallpadconfig.screen;
 
 import com.artncore.commons.define;
 import com.artncore.wallpadapi.WallPadAPI;
+import com.util.LogUtil;
+
 import java.util.Calendar;
 
 import android.app.AlarmManager;
@@ -504,9 +506,12 @@ public class ConfigTimeSetScreen extends WpadScreen{
 			this.getContext().sendBroadcast(notiIntent);
 			Title.setText(String.valueOf(CurYear)+"년 "+String.valueOf(CurMonth)+"월 "+String.valueOf(CurDate)+"일 "+String.valueOf(CurHour)+"시 "+String.valueOf(CurMin)+"분 "); //저장하면 타이틀 변경됨.
 
-		} catch (Exception e) {
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception e) {
 			Log.e(TAG, "[Exception] SaveChangeTime()");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 		}
 
 	}

+ 5 - 1
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/PopupAsCall.java

@@ -11,6 +11,7 @@ package kr.co.icontrols.wallpadconfig.screen;
 
 import com.artncore.commons.define;
 import com.artncore.wallpadapi.WallPadAPI;
+import com.util.LogUtil;
 
 import android.annotation.SuppressLint;
 import android.content.ComponentName;
@@ -181,9 +182,12 @@ public class PopupAsCall extends WpadScreen
             mIntent.setComponent(mComponentName);
             this.getContext().startActivity(mIntent);
             Thread.sleep(500);   // Call app이 실행되는 시간을 기다려준다. (빨리 띄우면 이벤트를 수신 못함)
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
         } catch (Exception e) {
             Log.e(TAG, "[Exception] runCallMainActivity()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 	

+ 13 - 5
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/PopupMobileDeviceAdd.java

@@ -15,6 +15,7 @@ import com.artncore.WallPadDataMgr.WallpadStatusData;
 import com.artncore.commons.define;
 import com.artncore.wallpadapi.WallPadAPI;
 import com.artncore.wallpadimap.RetProci;
+import com.util.LogUtil;
 
 import android.annotation.SuppressLint;
 import android.content.BroadcastReceiver;
@@ -197,9 +198,12 @@ public class PopupMobileDeviceAdd extends WpadScreen
             WallpadStatusData DBMGR = new WallpadStatusData(getContext());
             DBMGR.setRemoteCallUserPopupRun(bRunning);
             DBMGR.closeDB();
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
         } catch (Exception e) {
             Log.e(TAG, "[Exception] setRemoteCallPopupRunning(boolean bRunning)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -231,9 +235,12 @@ public class PopupMobileDeviceAdd extends WpadScreen
                     ReminTimerReset();
                     SetRegModeChange(MODE.SERVER_WAIT, null, false);
                 }
-                catch(Exception e)
-                {
-                    e.printStackTrace();
+                catch (RuntimeException re) {
+                    LogUtil.errorLogInfo("", TAG, re);
+                }
+                catch(Exception e) {
+                    //e.printStackTrace();
+                    LogUtil.errorLogInfo("", TAG, e);
                 }
             }
 
@@ -348,7 +355,8 @@ public class PopupMobileDeviceAdd extends WpadScreen
                     SetRegModeChange(MODE.REG_DONE, null, true);
                 } catch (InterruptedException e) {
                     Log.e(TAG, "[SetRegModeChange] onBrReceive(Intent intent)");
-                    e.printStackTrace();
+                    //e.printStackTrace();
+                    LogUtil.errorLogInfo("", TAG, e);
                 }
             }
         }

+ 13 - 6
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/PopupMobileDeviceDel.java

@@ -13,6 +13,7 @@ import com.artncore.WallPadDataMgr.WallpadMobileDeviceData;
 import com.artncore.commons.define;
 import com.artncore.wallpadapi.WallPadAPI;
 import com.artncore.wallpadimap.RetProci;
+import com.util.LogUtil;
 
 import android.annotation.SuppressLint;
 import android.content.Context;
@@ -230,9 +231,12 @@ public class PopupMobileDeviceDel extends WpadScreen
             intent.putExtra(define.NOTIBR_CONTENT, Name);
             getContext().sendBroadcast(intent);
         }
-        catch(Exception e)
-        {
-            e.printStackTrace();
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        }
+        catch (Exception e) {
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -270,9 +274,12 @@ public class PopupMobileDeviceDel extends WpadScreen
                     ReminTimerReset();
                     SetRegModeChange(MODE.SERVER_WAIT);
                 }
-                catch(Exception e)
-                {
-                    e.printStackTrace();
+                catch (RuntimeException re) {
+                    LogUtil.errorLogInfo("", TAG, re);
+                }
+                catch (Exception e) {
+                    //e.printStackTrace();
+                    LogUtil.errorLogInfo("", TAG, e);
                 }
             }
 

+ 7 - 3
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/PopupMobileDeviceInit.java

@@ -23,6 +23,7 @@ import android.widget.RelativeLayout;
 
 import com.artncore.commons.define;
 import com.artncore.wallpadimap.RetProci;
+import com.util.LogUtil;
 
 import kr.co.icontrols.wallpadconfig.MainActivity;
 import kr.co.icontrols.wallpadconfig.R;
@@ -214,9 +215,12 @@ public class PopupMobileDeviceInit extends WpadScreen
                                     }
                                 }
                             }
-                            catch(Exception e)
-                            {
-                                e.printStackTrace();
+                            catch (RuntimeException re) {
+                                LogUtil.errorLogInfo("", TAG, re);
+                            }
+                            catch (Exception e) {
+                                //e.printStackTrace();            
+                                LogUtil.errorLogInfo("", TAG, e);
                             }
                         }
 

+ 49 - 18
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/PopupNameSet.java

@@ -14,6 +14,7 @@ import com.artncore.WallPadDataMgr.WallpadStatusData;
 import com.artncore.commons.define;
 import com.artncore.wallpadapi.MultiSwitchAPI;
 import com.artncore.wallpadapi.WallPadAPI;
+import com.util.LogUtil;
 
 import android.annotation.SuppressLint;
 import android.content.Context;
@@ -235,6 +236,9 @@ public class PopupNameSet extends WpadScreen {
                 left = Common.PopupNomalMarginLEFT(mPos[i][0]);
                 top  = Common.PopupNomalMarginTOP(mPos[i][1]);
                 BoxPackage[i] = new ViewPackage(left, top, i);
+            } catch (RuntimeException re) {
+                LogUtil.errorLogInfo("", TAG, re);
+                BoxPackage[i] = null;
             } catch (Exception e) {
                 Log.e(TAG, "[Exception Error] - [Create] roomView new : " + e.toString());
                 BoxPackage[i] = null;
@@ -284,8 +288,10 @@ public class PopupNameSet extends WpadScreen {
                 }
                 sendBRRoomNameChanged();
             }
-            catch(Exception e)
-            {
+            catch (RuntimeException re) {
+                LogUtil.errorLogInfo("", TAG, re);
+            }
+            catch (Exception e) {
                 Log.e(TAG, "[ExceptionError] - SetDevRoomIdx : " + e);
             }
         }
@@ -511,8 +517,11 @@ public class PopupNameSet extends WpadScreen {
             }
             
         }
-        catch(Exception e)
-        {
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return;
+        }
+        catch (Exception e) {
             Log.e(TAG, "[ExceptionError] - Draw_Update : " + e);
             return;
         }
@@ -808,8 +817,11 @@ public class PopupNameSet extends WpadScreen {
             return true;
             
         }
-        catch(Exception e)
-        {
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return false;
+        }
+        catch (Exception e) {
             Log.e(TAG, "[ExceptionError] - RoomDataLoad->wallpadStatusData new  : " + e);
             return false;
         }
@@ -829,8 +841,11 @@ public class PopupNameSet extends WpadScreen {
         {
             wallpadStatusData = new WallpadStatusData(getContext().getApplicationContext());
         }
-        catch(Exception e)
-        {
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return false;
+        }
+        catch (Exception e) {
             Log.e(TAG, "[ExceptionError] - RoomDataLoad->wallpadStatusData new  : " + e);
             return false;
         }
@@ -840,8 +855,11 @@ public class PopupNameSet extends WpadScreen {
         {
             mRoomTitleList = WallpadStatusData.RoomTitle;
         }
-        catch(Exception e)
-        {
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return false;
+        }
+        catch (Exception e) {
             Log.e(TAG, "[ExceptionError] - RoomDataLoad->WallpadStatusData.RoomTitle Read  : " + e);
             return false;
         }
@@ -872,8 +890,11 @@ public class PopupNameSet extends WpadScreen {
                 for(int i=0 ; i<6 ; i++) mRoomIndex_Light[i] = getDevRoomIdx[i];             
             }            
         }
-        catch(Exception e)
-        {
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return false;
+        }
+        catch (Exception e) {
             Log.e(TAG, "[ExceptionError] - wallpadStatusData.GetDevRoomIdx  &  Copy Data  : " + e);
             return false;
         }
@@ -934,11 +955,15 @@ public class PopupNameSet extends WpadScreen {
 
                                 //콘센트 사용확인필요
                                 MultiSwitchAPI MSAPI = m_WpApi.Get_MultiSwitchController();
-                                MSAPI.Refresh((byte) 0xFF, false);
-                                if (MSAPI.isExist_ConcentDevice())
+                                if(MSAPI!=null)
                                 {
-                                    return true;
+                                    MSAPI.Refresh((byte) 0xFF, false);
+                                    if (MSAPI.isExist_ConcentDevice())
+                                    {
+                                        return true;
+                                    }
                                 }
+
                             }
                         }
                     }
@@ -949,8 +974,11 @@ public class PopupNameSet extends WpadScreen {
             }
 
         }
-        catch (Exception e)
-        {
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return false;
+        }
+        catch (Exception e) {
             Log.e(TAG, "[ExceptionError] - GetConcentUseOrNot  : " + e);
             return false;
         }
@@ -965,9 +993,12 @@ public class PopupNameSet extends WpadScreen {
             notiIntent.setAction(define.NOTIFY_ACNAME);
             notiIntent.putExtra(define.NOTIBR_KIND, define.NOTIFY_ROOMNAME_CHANGED);
             getContext().sendBroadcast(notiIntent);
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
         } catch (Exception e) {
             Log.e(TAG, "[Exception] sendBRRoomNameChanged()");
-            e.printStackTrace();
+            //e.printStackTrace();            
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 

+ 9 - 2
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/PopupNoticeReboot.java

@@ -10,6 +10,7 @@ import android.view.View;
 import android.widget.RelativeLayout;
 
 import com.artncore.wallpadapi.WallPadAPI;
+import com.util.LogUtil;
 
 import kr.co.icontrols.wallpadconfig.PopupActivity;
 import kr.co.icontrols.wallpadconfig.R;
@@ -71,9 +72,12 @@ public class PopupNoticeReboot extends WpadScreen {
             InfoText = new WpadTextView(context, false, 984, 174, Gravity.CENTER, Color.WHITE, Common.fontsize._46, true, ID.PoupNoticeRebootID.text.INFO);
             ViewRegistration(layout, InfoText, Common.PopupAlarmMarginLEFT(148), Common.PopupAlarmMarginTOP(168));
             InfoText.setText("확인 버튼을 누르면 잠시후 월패드가 리부팅됩니다.");
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
         } catch (Exception e) {
             Log.e(TAG, "[Exception] PopupNoticeReboot(Context context, RelativeLayout layout)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -113,9 +117,12 @@ public class PopupNoticeReboot extends WpadScreen {
             data.putExtra("POPUP_BTN", nInput);
 
             super.setPopupResult(data);
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
         } catch (Exception e) {
             Log.e(TAG, "[Exception] setPopupResult()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 }

+ 32 - 8
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/PopupReliefCallPreset.java

@@ -16,6 +16,7 @@ import android.widget.SeekBar;
 
 import com.artncore.WallPadDataMgr.WallpadStatusData;
 import com.artncore.wallpadapi.WallPadAPI;
+import com.util.LogUtil;
 
 import kr.co.icontrols.wallpadconfig.MainActivity;
 import kr.co.icontrols.wallpadconfig.PopupActivity;
@@ -171,7 +172,8 @@ public class PopupReliefCallPreset extends WpadScreen {
         super.onClose();
         stopAudioRecordingTimeoutChecker();
         stopAudioRecording();
-        mAudioRecordController.releaseAudioRecordControls();
+        if(mAudioRecordController!=null)
+            mAudioRecordController.releaseAudioRecordControls();
     }
 
     @Override
@@ -246,9 +248,12 @@ public class PopupReliefCallPreset extends WpadScreen {
                     TXT_TITLE_FILTER_04.setTextColor(getContext().getResources().getColor(R.color.white));
                     break;
             }
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
         } catch (Exception e) {
             Log.e(TAG, "[Exception] showSelectedFilter(int seekBarNo)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -337,9 +342,13 @@ public class PopupReliefCallPreset extends WpadScreen {
             if ((nValue % 10) != 0) result++;
             Log.d(TAG, "[getCtrlLevel] result [" + result + "]");
             return result;
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return 1;
         } catch (Exception e) {
             Log.e(TAG, "[Exception] getCtrlLevel(int nValue)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
             return 1;
         }
     }
@@ -361,9 +370,12 @@ public class PopupReliefCallPreset extends WpadScreen {
             } else {
                 Log.w(TAG, "[initFilterPreset] presetArray is null!!");
             }
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
         } catch (Exception e) {
             Log.e(TAG, "[Exception] initFilterPreset()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -375,9 +387,12 @@ public class PopupReliefCallPreset extends WpadScreen {
             WallpadStatusData DBMGR = new WallpadStatusData(getContext());
             DBMGR.SetReliefCallDegree(strPreset);
             DBMGR.closeDB();
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
         } catch (Exception e) {
             Log.e(TAG, "[Exception] saveFilterPreset()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -389,9 +404,12 @@ public class PopupReliefCallPreset extends WpadScreen {
 
                 startAudioRecordingTimeoutChecker();
             }
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
         } catch (Exception e) {
             Log.e(TAG, "[Exception] prepareAudioConfig()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -406,9 +424,12 @@ public class PopupReliefCallPreset extends WpadScreen {
             mHandler.postDelayed(mAudioRecordingTimeoutChecker, AUDIO_RECORDING_INTERVAL);
 
             bRunningAudioRecording = true;
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
         } catch (Exception e) {
             Log.e(TAG, "[Exception] startAudioRecordingTimeoutChecker()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -418,9 +439,12 @@ public class PopupReliefCallPreset extends WpadScreen {
             mHandler.removeCallbacks(mAudioRecordingTimeoutChecker);
 
             bRunningAudioRecording = false;
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
         } catch (Exception e) {
             Log.e(TAG, "[Exception] stopAudioRecordingTimeoutChecker()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 

+ 30 - 11
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/PopupRemoconReg.java

@@ -12,6 +12,7 @@ package kr.co.icontrols.wallpadconfig.screen;
 import com.artncore.commons.define;
 import com.artncore.wallpadapi.PhonNRemocon;
 import com.artncore.wallpadapi.WallPadAPI;
+import com.util.LogUtil;
 
 import android.annotation.SuppressLint;
 import android.content.Context;
@@ -300,11 +301,15 @@ public class PopupRemoconReg extends WpadScreen
         {
             phonNRemocon = wpapi.Get_PhonNRemoconController();
         }
-        catch(Exception e)
-        {
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return -100;
+        }
+        catch (Exception e) {
             Log.e(TAG, "[Device_ApiLoad] - [Exception Error] wpapi.Get_PhonNRemoconController");
             Log.e(TAG, "[Device_ApiLoad] - " + e.toString());
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
             return -100;
         }
 
@@ -343,11 +348,15 @@ public class PopupRemoconReg extends WpadScreen
             {
                 phonNRemocon.regChangedBR(BR_NAME);
             }
-            catch(Exception e)
-            {
+            catch (RuntimeException re) {
+                LogUtil.errorLogInfo("", TAG, re);
+                return -101;
+            }
+            catch (Exception e) {
                 Log.e(TAG, "[Device_BrRegistration] - [Exception Error] phonNRemocon.regChangedBR");
                 Log.e(TAG, "[Device_BrRegistration] - " + e.toString());
-                e.printStackTrace();
+                //e.printStackTrace();
+                LogUtil.errorLogInfo("", TAG, e);
                 return -101;
             }
             super.addBrActionFilter(BR_NAME);
@@ -358,11 +367,15 @@ public class PopupRemoconReg extends WpadScreen
             {
                 phonNRemocon.unregChangedBR(BR_NAME);
             }
-            catch(Exception e)
-            {
+            catch (RuntimeException re) {
+                LogUtil.errorLogInfo("", TAG, re);
+                return -102;
+            }
+            catch (Exception e) {
                 Log.e(TAG, "[Device_BrRegistration] - [Exception Error] phonNRemocon.unregChangedBR");
                 Log.e(TAG, "[Device_BrRegistration] - " + e.toString());
-                e.printStackTrace();
+                //e.printStackTrace();
+                LogUtil.errorLogInfo("", TAG, e);
                 return -102;
             }
             super.removeBrActionFilter(BR_NAME);
@@ -447,18 +460,24 @@ public class PopupRemoconReg extends WpadScreen
             mIntent.setAction(BR.WIRELESSREMOTECTRL);
             mIntent.putExtra("CMD", strCMD);
             context.sendBroadcast(mIntent);
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
         } catch (Exception e) {
             Log.e(TAG, "[Exception] sendSubPhoneServiceBR(Context context, String strCMD)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
     private void startRegWirelessRemocon() {
         try {
             sendSubPhoneServiceBR((WpadActivity)(getContext()), BR.CMD_REG_REQUEST);
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
         } catch (Exception e) {
             Log.e(TAG, "[Exception] startRegWirelessRemocon()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 

+ 65 - 19
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/PopupRemoteCallUserSetting.java

@@ -16,6 +16,7 @@ import com.artncore.WallPadDataMgr.WallPadRemoteCallUserData;
 import com.artncore.WallPadDataMgr.WallPadRemoteCallUserData.RemoteCallUserClass;
 import com.artncore.WallPadDataMgr.WallpadDeviceSet;
 import com.artncore.commons.define;
+import com.util.LogUtil;
 
 import java.util.ArrayList;
 import java.util.List;
@@ -213,8 +214,8 @@ public class PopupRemoteCallUserSetting extends WpadScreen {
                 mLIST[i].TXT_NO.setVisibility(View.INVISIBLE);
 
                 nID = ID.PopupRemoteCallUserSet.text.NAME_01 + i;
-                mLIST[i].TXT_NAME = new WpadTextView(context, false, 148, 70, Gravity.CENTER, Color.WHITE, Common.fontsize._36, false, nID);
-                ViewRegistration(layout, mLIST[i].TXT_NAME, Common.PopupAlarmMarginLEFT(nPosition[nCase][1] - 10), Common.PopupNomalMarginTOP(245) + 75 * i);
+                mLIST[i].TXT_NAME = new WpadTextView(context, false, 184, 70, Gravity.CENTER, Color.WHITE, Common.fontsize._36, false, nID);
+                ViewRegistration(layout, mLIST[i].TXT_NAME, Common.PopupAlarmMarginLEFT(nPosition[nCase][1] - 28), Common.PopupNomalMarginTOP(245) + 75 * i);
                 mLIST[i].TXT_NAME.setVisibility(View.INVISIBLE);
 
                 int topMargin = (i > 1) ? -5 : 0;
@@ -275,9 +276,12 @@ public class PopupRemoteCallUserSetting extends WpadScreen {
             ViewRegistration(layout, mPageText, Common.PopupAlarmMarginLEFT(508), Common.PopupNomalMarginTOP(619));
 
             getUserHistoryFromDB();
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
         } catch (Exception e) {
             Log.e(TAG, "[Exception] PopupRemoteCallUserSetting(Context context, RelativeLayout layout, WallPadAPI wpapi)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -346,9 +350,12 @@ public class PopupRemoteCallUserSetting extends WpadScreen {
             InitHistoryPageInfo();
             IntentFilter filter = new IntentFilter();
             filter.addAction(Common.BR.VISITOR_REMOTE_CALL); // BR 등록
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
         } catch (Exception e) {
             Log.e(TAG, "[Exception] Initialize()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -360,9 +367,12 @@ public class PopupRemoteCallUserSetting extends WpadScreen {
             intent.setAction(Common.BR.VISITOR_REMOTE_CALL);
             intent.putExtra(define.NOTIBR_KIND, define.NOTIFY_EVENT_REMOTECALL_USER_INITIALIZE);
             getContext().sendBroadcast(intent);
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
         } catch (Exception e) {
             Log.e(TAG, "[Exception] initRemoteCallLib()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -380,9 +390,12 @@ public class PopupRemoteCallUserSetting extends WpadScreen {
                 remoteUserName.add(dataList.get(i).Name);
             }
             sendHandlerMsgDelayed(nHANDLER_SCREEN_REFRESH, 0, 0, 1000); // 화면 재로딩
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
         } catch (Exception e) {
             Log.e(TAG, "[Exception] initRemoteCallUser()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -392,9 +405,12 @@ public class PopupRemoteCallUserSetting extends WpadScreen {
             if (wallPadRemoteCallUserData != null) {
                 wallPadRemoteCallUserData.DeleteAllRemoteCallUserInfo();
             }
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
         } catch (Exception e) {
             Log.e(TAG, "[Exception] deleteRemoteCallAllUser()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -404,9 +420,12 @@ public class PopupRemoteCallUserSetting extends WpadScreen {
             nTotalPage = ((nHistoryCnt + LIST_CNT - 1) / LIST_CNT);
             nCurrentPage = 1;
             Log.d(TAG, "[initHistoryPageInfo] nHistoryCnt [" + nHistoryCnt + "], nTotalPage [" + nTotalPage + "]");
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
         } catch (Exception e) {
             Log.e(TAG, "[Exception] initHistoryPageInfo()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -461,13 +480,13 @@ public class PopupRemoteCallUserSetting extends WpadScreen {
 
                         if (bDoorOpenUse) {
                             mLIST[i].BTN_DOOROPEN.setVisibility(View.VISIBLE);
-                            if (mLIST_VALUE[i].DOOROPEN_AUTH_ONOFF.equals("1"))
+                            if (mLIST[i].BTN_DOOROPEN!=null && mLIST_VALUE[i].DOOROPEN_AUTH_ONOFF.equals("1"))
                                 mLIST[i].BTN_DOOROPEN.setImageResource(R.drawable.btn_onoff_on);
                             else mLIST[i].BTN_DOOROPEN.setImageResource(R.drawable.btn_onoff_off);
                         }
                         if (bHomeViewerUse) {
                             mLIST[i].BTN_HOMEVIEWER.setVisibility(View.VISIBLE);
-                            if (mLIST_VALUE[i].HOMEVIEWER_AUTH_ONOFF.equals("1"))
+                            if (mLIST[i].BTN_HOMEVIEWER!=null && mLIST_VALUE[i].HOMEVIEWER_AUTH_ONOFF.equals("1"))
                                 mLIST[i].BTN_HOMEVIEWER.setImageResource(R.drawable.btn_onoff_on);
                             else mLIST[i].BTN_HOMEVIEWER.setImageResource(R.drawable.btn_onoff_off);
                         }
@@ -484,9 +503,12 @@ public class PopupRemoteCallUserSetting extends WpadScreen {
                     mPageText.setText(strPageText);
                 }
             }
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
         } catch (Exception e) {
             Log.e(TAG, "[Exception] getUserHistoryFromDB()");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -504,9 +526,12 @@ public class PopupRemoteCallUserSetting extends WpadScreen {
                 mLIST_VALUE[nIndex].MONITOR_AUTH_ONOFF = "1";
             }
             setRemoteCallUserAuth(nIndex);
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
         } catch (Exception e) {
             Log.e(TAG, "[Exception] drawMonitorAuth(int nIndex)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -524,9 +549,12 @@ public class PopupRemoteCallUserSetting extends WpadScreen {
                 mLIST_VALUE[nIndex].LOBBYOPEN_AUTH_ONOFF = "1";
             }
             setRemoteCallUserAuth(nIndex);
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
         } catch (Exception e) {
             Log.e(TAG, "[Exception] drawLobbyOpenAuth(int nIndex)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -544,9 +572,12 @@ public class PopupRemoteCallUserSetting extends WpadScreen {
                 mLIST_VALUE[nIndex].DOOROPEN_AUTH_ONOFF = "1";
             }
             setRemoteCallUserAuth(nIndex);
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
         } catch (Exception e) {
             Log.e(TAG, "[Exception] drawDoorOpenAuth(int nIndex)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -564,9 +595,12 @@ public class PopupRemoteCallUserSetting extends WpadScreen {
                 mLIST_VALUE[nIndex].HOMEVIEWER_AUTH_ONOFF = "1";
             }
             setRemoteCallUserAuth(nIndex);
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
         } catch (Exception e) {
             Log.e(TAG, "[Exception] drawHomeViewerAuth(int nIndex)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -590,9 +624,12 @@ public class PopupRemoteCallUserSetting extends WpadScreen {
             intent.putExtra(define.NOTIBR_KIND, define.NOTIFY_EVENT_REMOTECALL_USER_CHANGE_AUTHORITY);
             intent.putExtra(define.NOTIBR_REMOTECALL_USER_CHANGE_AUTHORITY_INFO, strAuthInfo);
             getContext().sendBroadcast(intent);
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
         } catch (Exception e) {
             Log.e(TAG, "[Exception] setRemoteCallUserAuth(int nIndex)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -606,9 +643,12 @@ public class PopupRemoteCallUserSetting extends WpadScreen {
                 if (nCurrentPage < 1) nCurrentPage = nTotalPage;
             }
             getUserHistoryFromDB();
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
         } catch (Exception e) {
             Log.e(TAG, "[Exception] movePage(boolean bNext)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -622,9 +662,12 @@ public class PopupRemoteCallUserSetting extends WpadScreen {
                 if (mManualBtn.getVisibility() != View.INVISIBLE)
                     mManualBtn.setVisibility(View.INVISIBLE);
             }
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
         } catch (Exception e) {
             Log.e(TAG, "[Exception] setManualBtnVisible(boolean bEnable)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 
@@ -659,9 +702,12 @@ public class PopupRemoteCallUserSetting extends WpadScreen {
             HandleMsg.arg1 = arg1;
             HandleMsg.arg2 = arg2;
             mHandler.sendMessageDelayed(HandleMsg, delay);
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
         } catch (Exception e) {
             Log.e(TAG, "[Exception] sendHandlerMsgDelayed(int what, int arg1, int arg2, long delay)");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
         }
     }
 }

+ 34 - 14
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/PopupRfCardReg.java

@@ -12,6 +12,7 @@ package kr.co.icontrols.wallpadconfig.screen;
 import com.artncore.WallPadDataMgr.WallpadRFCardData;
 import com.artncore.wallpadapi.RFDoorCamAPI;
 import com.artncore.wallpadapi.WallPadAPI;
+import com.util.LogUtil;
 
 import android.annotation.SuppressLint;
 import android.content.Context;
@@ -503,10 +504,14 @@ public class PopupRfCardReg extends WpadScreen
         {
             rFDoorCamAPI = wpapi.Get_RFDoorCamController();
         }
-        catch(Exception e)
-        {
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return -100;
+        }
+        catch (Exception e) {
             Log.e(TAG, "[Device_ApiLoad] - [Exception Error] wpapi.Get_RFDoorCamController");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
             return -100;
         }
         if(rFDoorCamAPI == null)
@@ -544,10 +549,14 @@ public class PopupRfCardReg extends WpadScreen
             {
                 rFDoorCamAPI.regChangedBR(BR_NAME);
             }
-            catch(Exception e)
-            {
+            catch (RuntimeException re) {
+                LogUtil.errorLogInfo("", TAG, re);
+                return -101;
+            }
+            catch (Exception e) {
                 Log.e(TAG, "[Device_BrRegistration] - [Exception Error] rFDoorCamAPI.regChangedBR");
-                e.printStackTrace();
+                //e.printStackTrace();
+                LogUtil.errorLogInfo("", TAG, e);
                 return -101;
             }
             super.addBrActionFilter(BR_NAME);
@@ -558,8 +567,11 @@ public class PopupRfCardReg extends WpadScreen
             {
                 rFDoorCamAPI.unregChangedBR(BR_NAME);
             }
-            catch(Exception e)
-            {
+            catch (RuntimeException re) {
+                LogUtil.errorLogInfo("", TAG, re);
+                return -102;
+            }
+            catch (Exception e) {
                 Log.e(TAG, "[Device_BrRegistration] - [Exception Error] rFDoorCamAPI.unregChangedBR");
                 Log.e(TAG, "[Device_BrRegistration] - " + e.toString());
                 return -102;
@@ -603,10 +615,14 @@ public class PopupRfCardReg extends WpadScreen
                 return -2;
             }
         }
-        catch(Exception e)
-        {
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return -102;
+        }
+        catch (Exception e) {
             Log.e(TAG, "[Device_RegModeControl] - [Exception Error] rFDoorCamAPI.StartRegRFCard(" + OnOff + ")");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
             return -102;
         }
         
@@ -648,10 +664,14 @@ public class PopupRfCardReg extends WpadScreen
             WpadRFCardData.closeDB();
             return Count;
         }
-        catch(Exception e)
-        {
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return -1000;
+        }
+        catch (Exception e) {
             Log.e(TAG, "[WpadRFCardData] - [Exception Error] ");
-            e.printStackTrace();
+            //e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
             return -1000;
         }
     }

+ 3 - 2
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/PopupSkinChangeAlarm.java

@@ -62,8 +62,9 @@ public class PopupSkinChangeAlarm extends WpadScreen
 	        {
 	        	Log.d(TAG, "[intent] -- NULL: ");
 	        }
-    	}catch( Exception e )
-    	{
+    	} catch (RuntimeException re) {
+            Log.d(TAG, "[Exception] -- : " + re.toString());
+        } catch (Exception e ) {
     		Log.d(TAG, "[Exception] -- : " + e.toString());
     	}
     }

+ 18 - 12
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/PopupSkinCopyComplete.java

@@ -16,6 +16,7 @@ import java.io.IOException;
 import java.nio.channels.FileChannel;
 
 import com.artncore.wallpadapi.WallPadAPI;
+import com.util.LogUtil;
 
 import android.annotation.SuppressLint;
 import android.content.Context;
@@ -69,8 +70,9 @@ public class PopupSkinCopyComplete extends WpadScreen
 	        {
 	        	Log.d(TAG, "[intent] -- NULL: ");
 	        }
-    	}catch( Exception e )
-    	{
+    	} catch (RuntimeException re) {
+			Log.d(TAG, "[Exception] -- : " + re.toString());
+        } catch (Exception e) {
     		Log.d(TAG, "[Exception] -- : " + e.toString());
     	}
     	
@@ -81,12 +83,15 @@ public class PopupSkinCopyComplete extends WpadScreen
     		{
     			Log.d(TAG, "[SKIN_PATH] ----------------true----------------------------");
     			File [] arrFile = folderCheck.listFiles();
-    			for( int i = 0 ; i < arrFile.length ; i++ )
-    			{
-    				// 파일 확장자를 체크 하여 추가하도록 보완처리하도록 한다.
-    				Log.d(TAG, "[fileName]  : " + arrFile[i].getName()  + "  , path : " + arrFile[i].getPath());
-    				fileCopy(arrFile[i].getPath() , Common.USERSKIN_PATH + arrFile[i].getName());
-    			}
+    			if(arrFile!=null)
+				{
+					for( int i = 0 ; i < arrFile.length ; i++ )
+					{
+						// 파일 확장자를 체크 하여 추가하도록 보완처리하도록 한다.
+						Log.d(TAG, "[fileName]  : " + arrFile[i].getName()  + "  , path : " + arrFile[i].getPath());
+						fileCopy(arrFile[i].getPath() , Common.USERSKIN_PATH + arrFile[i].getName());
+					}
+				}
     		}
     		else 
     		{
@@ -94,9 +99,10 @@ public class PopupSkinCopyComplete extends WpadScreen
     		}
     		
 
-		}catch( Exception e )
-		{
-			
+		} catch (RuntimeException re) {
+			Log.d(TAG, "[Exception] -- : " + re.toString());
+        } catch (Exception e) {
+			Log.d(TAG, "[Exception] -- : " + e.toString());
 		}
 		
     }
@@ -188,7 +194,7 @@ public class PopupSkinCopyComplete extends WpadScreen
 			   //입력스트림으로 부터 가져온 파일채널에서 이 메소드를 호출하면 , 지가 알아서 버퍼해가지고 카피해버립니다. 
 			   fcIn.transferTo(0, fcIn.size(), fcOut);
 		  } catch (IOException e) {
-		   	    
+		   	    LogUtil.errorLogInfo("", TAG, e);
 		  }
 		   if(fcOut!=null) fcOut.close();
 		   if(fcIn!=null) fcIn.close();

+ 37 - 24
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/PopupSmartKeyReg.java

@@ -11,6 +11,7 @@ package kr.co.icontrols.wallpadconfig.screen;
 
 import com.artncore.wallpadapi.SmartKeyRfDoorAPI;
 import com.artncore.wallpadapi.WallPadAPI;
+import com.util.LogUtil;
 
 import android.annotation.SuppressLint;
 import android.content.Context;
@@ -446,12 +447,14 @@ public class PopupSmartKeyReg extends WpadScreen
         try
         {
             smartKeyRfDoorAPI = wpapi.Get_SmartKeyRfDoorController();
-        }
-        catch(Exception e)
-        {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return -100;
+        } catch (Exception e) {
             Log.e(TAG, "[Device_ApiLoad] - [Exception Error] wpapi.Get_SmartKeyRfDoorController");
             Log.e(TAG, "[Device_ApiLoad] - " + e.toString());
-            e.printStackTrace();
+            //e.printStackTrace();            
+            LogUtil.errorLogInfo("", TAG, e);
             return -100;
         }
         if(smartKeyRfDoorAPI == null)
@@ -490,12 +493,14 @@ public class PopupSmartKeyReg extends WpadScreen
                 //DebugLogOutput("[Device_BrRegistration] - regChangedBR START");
                 smartKeyRfDoorAPI.regChangedBR(BR_NAME);
                 //DebugLogOutput("[Device_BrRegistration] - regChangedBR END");
-            }
-            catch(Exception e)
-            {
+            } catch (RuntimeException re) {
+                LogUtil.errorLogInfo("", TAG, re);
+                return -101;
+            } catch (Exception e) {
                 Log.e(TAG, "[Device_BrRegistration] - [Exception Error] smartKeyRfDoorAPI.regChangedBR");
                 Log.e(TAG, "[Device_BrRegistration] - " + e.toString());
-                e.printStackTrace();
+                //e.printStackTrace();            
+                LogUtil.errorLogInfo("", TAG, e);
                 return -101;
             }
             super.addBrActionFilter(BR_NAME);
@@ -507,12 +512,14 @@ public class PopupSmartKeyReg extends WpadScreen
                 //DebugLogOutput("[Device_BrRegistration] - unregChangedBR START");
                 smartKeyRfDoorAPI.unregChangedBR(BR_NAME);
                 //DebugLogOutput("[Device_BrRegistration] - unregChangedBR END");
-            }
-            catch(Exception e)
-            {
+            } catch (RuntimeException re) {
+                LogUtil.errorLogInfo("", TAG, re);
+                return -102;
+            } catch (Exception e) {
                 Log.e(TAG, "[Device_BrRegistration] - [Exception Error] smartKeyRfDoorAPI.unregChangedBR");
                 Log.e(TAG, "[Device_BrRegistration] - " + e.toString());
-                e.printStackTrace();
+                //e.printStackTrace();            
+                LogUtil.errorLogInfo("", TAG, e);
                 return -102;
             }
             super.removeBrActionFilter(BR_NAME);            
@@ -544,12 +551,14 @@ public class PopupSmartKeyReg extends WpadScreen
                 Log.e(TAG, "[Device_SetRegisterModeStart] - SetRegisterModeStart(" + ret + ")   ErrorCode = " + smartKeyRfDoorAPI.ErrorCode.ErrStr());
                 return -2;
             }
-        }
-        catch(Exception e)
-        {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return -100;
+        } catch (Exception e) {
             Log.e(TAG, "[Device_SetRegisterModeStart] - [Exception Error] smartKeyRfDoorAPI.SetRegisterModeStart()");
             Log.e(TAG, "[Device_SetRegisterModeStart] - " + e.toString());
-            e.printStackTrace();
+            //e.printStackTrace();            
+            LogUtil.errorLogInfo("", TAG, e);
             return -100;
         }
         
@@ -581,12 +590,14 @@ public class PopupSmartKeyReg extends WpadScreen
                 Log.e(TAG, "[Device_SetRegisterModeEnd] - SetRegisterModeEnd(" + ret + ")   ErrorCode = " + smartKeyRfDoorAPI.ErrorCode.ErrStr());
                 return -2;
             }
-        }
-        catch(Exception e)
-        {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return -100;
+        } catch (Exception e) {
             Log.e(TAG, "[Device_SetRegisterModeEnd] - [Exception Error] smartKeyRfDoorAPI.SetRegisterModeEnd()");
             Log.e(TAG, "[Device_SetRegisterModeEnd] - " + e.toString());
-            e.printStackTrace();
+            //e.printStackTrace();            
+            LogUtil.errorLogInfo("", TAG, e);
             return -100;
         }
         
@@ -618,12 +629,14 @@ public class PopupSmartKeyReg extends WpadScreen
                 Log.e(TAG, "[Device_SetRegisterModeNext] - SetRegisterModeNext(" + ret + ")   ErrorCode = " + smartKeyRfDoorAPI.ErrorCode.ErrStr());
                 return -2;
             }
-        }
-        catch(Exception e)
-        {
+        } catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return -100;
+        } catch (Exception e) {
             Log.e(TAG, "[Device_SetRegisterModeNext] - [Exception Error] smartKeyRfDoorAPI.SetRegisterModeEnd()");
             Log.e(TAG, "[Device_SetRegisterModeNext] - " + e.toString());
-            e.printStackTrace();
+            //e.printStackTrace();            
+            LogUtil.errorLogInfo("", TAG, e);
             return -100;
         }
         

+ 7 - 2
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/PopupSmartKeySvrSend.java

@@ -16,6 +16,7 @@ import com.artncore.WallPadDataMgr.WallpadDeviceSet;
 import com.artncore.WallPadDataMgr.WallpadSmartKeyRegData;
 import com.artncore.WallPadDataMgr.WallpadSmartKeyRegData.SmartKeyDataClass;
 import com.artncore.wallpadimap.RetProci;
+import com.util.LogUtil;
 
 import android.annotation.SuppressLint;
 import android.content.Context;
@@ -489,10 +490,14 @@ public class PopupSmartKeySvrSend extends WpadScreen
 
             return true;
         }
-        catch (Exception ex)
+        catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return false;
+        } catch (Exception ex)
         {
             Log.e(TAG, "[iMAP_SendSetAccessKey] Exception !!!");
-            ex.printStackTrace();
+            //ex.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, ex);
             return false;
         }
 

+ 32 - 21
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/PopupUserSkinSet.java

@@ -19,6 +19,7 @@ import java.util.List;
 
 import com.artncore.WallPadDataMgr.WallpadStatusData;
 import com.artncore.wallpadapi.WallPadAPI;
+import com.util.LogUtil;
 
 import android.annotation.SuppressLint;
 import android.app.Activity;
@@ -106,9 +107,11 @@ public class PopupUserSkinSet extends WpadScreen
     		}
     		
     	}
-    	catch( Exception e)
-    	{
-    		
+    	catch (RuntimeException re) {
+			Log.e(TAG, "Exception : " + re.toString());
+        }
+    	catch (Exception e){
+			Log.e(TAG, "Exception : " + e.toString());
     	}
     }
     
@@ -118,9 +121,11 @@ public class PopupUserSkinSet extends WpadScreen
     	{
     		GetDB().SetMainBGSlidShowTime(min);
     	}
-    	catch( Exception e)
-    	{
-    		
+    	catch (RuntimeException re) {
+			Log.e(TAG, "Exception : " + re.toString());
+        }
+    	catch (Exception e) {
+			Log.e(TAG, "Exception : " + e.toString());
     	}
     }
     
@@ -339,11 +344,14 @@ public class PopupUserSkinSet extends WpadScreen
 	        			
 	        			FileArray.clear();
 	        			File [] arrFile = folderCheck.listFiles();
-	        			for( int i = 0 ; i < arrFile.length ; i++ )
-	        			{
-	        				// 파일 확장자를 체크 하여 추가하도록 보완처리하도록 한다.
-	        				FileArray.add(Common.USERSKIN_PATH + arrFile[i].getName());
-	        			}
+	        			if(arrFile!=null)
+						{
+							for( int i = 0 ; i < arrFile.length ; i++ )
+							{
+								// 파일 확장자를 체크 하여 추가하도록 보완처리하도록 한다.
+								FileArray.add(Common.USERSKIN_PATH + arrFile[i].getName());
+							}
+						}
 	        			
 	        			Log.d(TAG, "[FileArray.size() ] --------------" + FileArray.size() );
 		        		if( FileArray.size() > 0 )
@@ -376,9 +384,10 @@ public class PopupUserSkinSet extends WpadScreen
 	        		}
 	        		
 
-        		}catch( Exception e )
-        		{
-        			
+        		} catch (RuntimeException re) {
+					Log.e(TAG, "Exception : " + re.toString());
+				} catch (Exception e ) {
+					Log.e(TAG, "Exception : " + e.toString());
         		}
 
         	}
@@ -397,7 +406,7 @@ public class PopupUserSkinSet extends WpadScreen
 	        			Log.d(TAG, "[SKIN_PATH] ----------------true----------------------------");
 	        			File [] arrFile = folderCheck.listFiles();
 	        			
-	        			if( arrFile.length > 0 )
+	        			if(arrFile!=null &&  arrFile.length > 0 )
 	        			{
 		        			m_SkinChange = true;
 		        			super.setChangeScreen( screen.SkinCopyPopupScreen);
@@ -428,9 +437,10 @@ public class PopupUserSkinSet extends WpadScreen
 	        		}
 	        		
 
-        		}catch( Exception e )
-        		{
-        			
+        		} catch (RuntimeException re) {
+					Log.e(TAG, "Exception : " + re.toString());
+        		} catch (Exception e ) {
+					Log.e(TAG, "Exception : " + e.toString());
         		}
         	}
 
@@ -460,8 +470,9 @@ public class PopupUserSkinSet extends WpadScreen
 		  
 		  fOri.renameTo( fTarget);
 		  Log.d(TAG, "[move] ***************");
-		}catch( Exception e )
-		{
+		} catch (RuntimeException re) {
+			Log.e(TAG, "Exception : " + re.toString());
+        } catch (Exception e ){
 			Log.e(TAG, "Exception : " + e.toString());
 		}
 	 }
@@ -487,7 +498,7 @@ public class PopupUserSkinSet extends WpadScreen
 			   //입력스트림으로 부터 가져온 파일채널에서 이 메소드를 호출하면 , 지가 알아서 버퍼해가지고 카피해버립니다. 
 			   fcIn.transferTo(0, fcIn.size(), fcOut);
 		  } catch (IOException e) {
-		   	    
+		   	    LogUtil.errorLogInfo("", TAG, e);
 		  }
 		   if(fcOut!=null) fcOut.close();
 		   if(fcIn!=null) fcIn.close();

+ 19 - 12
WallPadConfig/src/main/java/kr/co/icontrols/wallpadconfig/screen/PopupWebCtrPwd.java

@@ -23,6 +23,7 @@ import android.widget.RelativeLayout;
 import com.artncore.WallPadDataMgr.WallpadStatusData;
 import com.artncore.WallPadDataMgr.wallpaddbmgr;
 import com.artncore.wallpadapi.WallPadAPI;
+import com.util.LogUtil;
 
 import kr.co.icontrols.wallpadconfig.MainActivity;
 import kr.co.icontrols.wallpadconfig.PopupActivity;
@@ -150,9 +151,9 @@ public class PopupWebCtrPwd extends WpadScreen
 			}
 
 			m_State = PwState.CUR_PW_INPUT;
-		}
-		catch( Exception e )
-		{
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+        } catch (Exception e ) {
 			Log.d(TAG, "[Exception]-" + e.toString());
 		}
 	}
@@ -313,8 +314,11 @@ public class PopupWebCtrPwd extends WpadScreen
 								Sound().PlayMent(SND.setting.RETRY_INPUT);
 							}
 						}
+					} catch (RuntimeException re) {
+						LogUtil.errorLogInfo("", TAG, re);
 					} catch (Exception e) {
-						e.printStackTrace();
+						//e.printStackTrace();
+            			LogUtil.errorLogInfo("", TAG, e);
 					}
 				}
 				else if (m_State == PwState.CHANGE_PW_CONFIRM)
@@ -465,11 +469,13 @@ public class PopupWebCtrPwd extends WpadScreen
 			}
 
 			return true;
-		}
-		catch (Exception e)
-		{
+		} catch (RuntimeException re) {
+            LogUtil.errorLogInfo("", TAG, re);
+            return false;
+        } catch (Exception e) {
 			Log.e(TAG, "[Exception] checkPWValidation(String strPW)");
-			e.printStackTrace();
+			//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 			return false;
 		}
 	}
@@ -502,9 +508,9 @@ public class PopupWebCtrPwd extends WpadScreen
 				Log.d(TAG, "[m_PassWord]" + m_PassWord);
 				wd.closeDB();
 			}
-		}
-		catch( Exception e )
-		{
+		} catch (RuntimeException re) {
+			LogUtil.errorLogInfo("", TAG, re);
+		} catch (Exception e ) {
 			Log.d(TAG, "[Exception]" + e.toString());
 		}
 	}
@@ -545,7 +551,8 @@ public class PopupWebCtrPwd extends WpadScreen
 				catch( Exception e )
 				{
 					Log.e(TAG, "Thread Exception :" + e);
-					e.printStackTrace();
+					//e.printStackTrace();
+            LogUtil.errorLogInfo("", TAG, e);
 				}
 
 			}