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

GPS off force close #8

Closed
abedputra opened this issue Oct 21, 2016 · 1 comment
Closed

GPS off force close #8

abedputra opened this issue Oct 21, 2016 · 1 comment

Comments

@abedputra
Copy link

abedputra commented Oct 21, 2016

E/AndroidRuntime: FATAL EXCEPTION: main
                  Process: ca.cmetcalfe.locationshare, PID: 10042
                  java.lang.RuntimeException: Unable to resume activity {ca.cmetcalfe.locationshare/ca.cmetcalfe.locationshare.MainActivity}: java.lang.IllegalArgumentException: invalid listener: null
                      at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3400)
                      at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3440)
                      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2713)
                      at android.app.ActivityThread.-wrap12(ActivityThread.java)
                      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)
                      at android.os.Handler.dispatchMessage(Handler.java:102)
                      at android.os.Looper.loop(Looper.java:154)
                      at android.app.ActivityThread.main(ActivityThread.java:6077)
                      at java.lang.reflect.Method.invoke(Native Method)
                      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
                   Caused by: java.lang.IllegalArgumentException: invalid listener: null
                      at android.location.LocationManager.checkListener(LocationManager.java:2260)
                      at android.location.LocationManager.requestLocationUpdates(LocationManager.java:467)
                      at ca.cmetcalfe.locationshare.MainActivity.onResume(MainActivity.java:131)
                      at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1269)
                      at android.app.Activity.performResume(Activity.java:6768)
                      at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3377)
                      at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3440) 
                      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2713) 
                      at android.app.ActivityThread.-wrap12(ActivityThread.java) 
                      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460) 
                      at android.os.Handler.dispatchMessage(Handler.java:102) 
                      at android.os.Looper.loop(Looper.java:154) 
                      at android.app.ActivityThread.main(ActivityThread.java:6077) 
                      at java.lang.reflect.Method.invoke(Native Method) 
                      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865) 
                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755) 
pR0Ps added a commit that referenced this issue Oct 29, 2016
 - Clean up the UI
 - Remove uneeded (and deprecated) GPS state listener
 - Add ability to copy link to the clipboard
 - Guard against crash if GPS disabled (Fixes #8)
pR0Ps added a commit that referenced this issue Oct 29, 2016
 - Clean up the UI (Fixes #1, Fixes #3)
 - Remove uneeded (and deprecated) GPS state listener
 - Add ability to copy link to the clipboard
 - Guard against crash if GPS disabled (Fixes #8)
@pR0Ps pR0Ps closed this as completed in 55b31ff Nov 3, 2016
@abedputra
Copy link
Author

thanks

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

No branches or pull requests

1 participant