Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new error callbacks to CellLocationProvider #36

Open
andygup opened this issue Sep 15, 2016 · 8 comments
Open

Add new error callbacks to CellLocationProvider #36

andygup opened this issue Sep 15, 2016 · 8 comments

Comments

@RameshkrishnanV
Copy link

i'm also facing this issue, my app is crashing only in android 8.... do u know how to fix this issue @andygup

@andygup
Copy link
Member Author

andygup commented Apr 16, 2018

@RameshkrishnanV can you provide a logcat dump of the error?

@RameshkrishnanV
Copy link

@andygup sorry for the late reply. this is my error log

Fatal Exception: java.lang.RuntimeException: Unable to pause activity {com.mywired.app/com.mywired.app.MainActivity}: java.lang.NullPointerException: Attempt to read from field 'java.lang.Integer android.telephony.PhoneStateListener.mSubId' on a null object reference
at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:3912)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3878)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3852)
at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:3826)
at android.app.ActivityThread.-wrap15(Unknown Source)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1609)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6501)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

@andygup
Copy link
Member Author

andygup commented Apr 18, 2018

@RameshkrishnanV

There are a number of potential causes:

@RameshkrishnanV
Copy link

RameshkrishnanV commented Apr 19, 2018 via email

@andygup
Copy link
Member Author

andygup commented Apr 30, 2018

@RameshkrishnanV you might try the suggestion in this issue: #61. It took a little while to figure the issue out.

@dorianrod
Copy link

dorianrod commented May 3, 2018

Hi, thanks a lot @andygup. I had the same issue (nexus 5X, android 8.1) and #61 seems ok to resolve this issue.
Any idea of the consequences of commenting the suggested lines? Do you think it could lead to a battery that would discharge faster (because the listener is not stopped) ?

@andygup
Copy link
Member Author

andygup commented May 3, 2018

@dorianrod I leaning towards saying this will not affect battery life since the TelephonyManager seems to have shut down. IMHO it look like an Android bug where if you set PhoneStateListener.LISTEN_NONE on any listener then TelephonyManager fully shuts down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants