mars icon indicating copy to clipboard operation
mars copied to clipboard

java.lang.IllegalStateException: Pid 19445 has exceeded the number of permissible registered listeners. Ignoring request to add

Open YvesCheung opened this issue 5 years ago • 8 comments

java.lang.IllegalStateException: Pid 19445 has exceeded the number of permissible registered listeners. Ignoring request to add. at android.os.Parcel.createExceptionOrNull(Parcel.java:2384) at android.os.Parcel.createException(Parcel.java:2360) at android.os.Parcel.readException(Parcel.java:2343) at android.os.Parcel.readException(Parcel.java:2285) at com.android.internal.telephony.ITelephonyRegistry$Stub$Proxy.listenForSubscriber(ITelephonyRegistry.java:1140) at android.telephony.TelephonyRegistryManager.listenForSubscriber(TelephonyRegistryManager.java:231) at android.telephony.TelephonyManager.listen(TelephonyManager.java:5617)

NetStatusUtil.java

public static int getStrength(final Context context) 

这个方法每调用一次就多注册一个listener是不是有点问题

YvesCheung avatar Aug 04 '20 10:08 YvesCheung

+1

yeyelow avatar Sep 15 '20 16:09 yeyelow

+1

mwshubham avatar Sep 28 '20 09:09 mwshubham

+1

bsrikanth88 avatar Oct 09 '20 05:10 bsrikanth88

+1

daohieu91 avatar Dec 25 '20 01:12 daohieu91

how can i remove this listener?

EmotionDemo avatar Aug 02 '21 14:08 EmotionDemo

+1

whsgzcy avatar Sep 16 '21 01:09 whsgzcy

telManager.listen(mMobilePhoneStateListener, PhoneStateListener.LISTEN_NONE)

FreddyChen avatar Nov 25 '21 07:11 FreddyChen