java.lang.IllegalArgumentException: regist too many Broadcast Receivers
# OS Version: 5.1.1
# Device: HUAWEI MediaPad T2 10.0 pro
# RAM Free: 24.5%
# Disk Free: 4.9%
Fatal Exception: java.lang.RuntimeException: Unable to start service ddolcatmaster.mypowermanagement.BatteryNotificationService@da39b4a with Intent { cmp=ddolcatmaster.mypowermanagement/.BatteryNotificationService }: java.lang.IllegalArgumentException: regist too many Broadcast Receivers
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3165)
at android.app.ActivityThread.access$2500(ActivityThread.java:165)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1522)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5689)
at java.lang.reflect.Method.invoke(Method.java)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
Fatal Exception: java.lang.RuntimeException: Unable to start service ddolcatmaster.mypowermanagement.BatteryNotificationService@da39b4a with Intent { cmp=ddolcatmaster.mypowermanagement/.BatteryNotificationService }: java.lang.IllegalArgumentException: regist too many Broadcast Receivers
Caused by java.lang.IllegalArgumentException: regist too many Broadcast Receivers
at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1838)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1794)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1788)
at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:489)
at ddolcatmaster.mypowermanagement.BatteryNotificationService.onStartCommand(Unknown Source)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3128)
at android.app.ActivityThread.access$2500(ActivityThread.java:165)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1522)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5689)
at java.lang.reflect.Method.invoke(Method.java)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
화훼이 폰에서 발생하는 오류로, 대부분 안드로이드 운영체제가 5.1 , 5.1.1 에서 발생하는 오류이다.
해결방법은 있는 것같은데…
과연 라이브러리까지 추가해가며 처리를 해야할 것인가? 라는 의문이 생긴다.
https://github.com/llew2011/HuaWeiVerifier
그렇지 않으면 화훼이 폰 사용자에게 화이트리스트에 추가해 달라는 홍보를 해야하는데…