Skip to content
This repository has been archived by the owner on Nov 8, 2018. It is now read-only.

CircleOfTrust Crashing on Android 7.0 #397

Open
abs51295 opened this issue Mar 3, 2017 · 3 comments · May be fixed by #407
Open

CircleOfTrust Crashing on Android 7.0 #397

abs51295 opened this issue Mar 3, 2017 · 3 comments · May be fixed by #407
Assignees

Comments

@abs51295
Copy link
Member

abs51295 commented Mar 3, 2017

Application is crashing when selecting Circle of Trust in Navigation Drawer.
20170303_201425_edited 1

The Crash Log is as follows:

03-03 20:08:54.669 20661-20661/com.peacecorps.pcsa E/AndroidRuntime: FATAL EXCEPTION: main Process: com.peacecorps.pcsa, PID: 20661 java.lang.SecurityException: "gps" location provider requires ACCESS_FINE_LOCATION permission. at android.os.Parcel.readException(Parcel.java:1683) at android.os.Parcel.readException(Parcel.java:1636) at android.location.ILocationManager$Stub$Proxy.requestLocationUpdates(ILocationManager.java:614) at android.location.LocationManager.requestLocationUpdates(LocationManager.java:887) at android.location.LocationManager.requestLocationUpdates(LocationManager.java:471) at com.peacecorps.pcsa.circle_of_trust.LocationHelper.startAcquiringLocation(LocationHelper.java:61) at com.peacecorps.pcsa.circle_of_trust.CircleOfTrustFragment.onResume(CircleOfTrustFragment.java:204) at android.support.v4.app.Fragment.performResume(Fragment.java:2126) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1151) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1290) at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:801) at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1677) at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:536) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6123) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)

I think this is due to the unhandled runtime permissions which were introduced in API 23 and our project is using API 22. So I would suggest to make our project build on API 25 and handle these kind of corner cases.

I would like to work on this issue. Thank you.

@swapsha96
Copy link

I resolved this issue by adding Run time Permissions when application starts. Can I create PR?

@m-murad
Copy link

m-murad commented Mar 4, 2017

You should wait for the maintainers approval.

@sandarumk
Copy link

@abs51295 For now let's just fix this and later have a discussion on moving to 25 or not. You can send your fix as a PR. @swapsha96 If you want to fix an issue which is reported by someone else, make sure you check the open tag.

abs51295 added a commit to abs51295/FirstAide-Android that referenced this issue Mar 5, 2017
@abs51295 abs51295 linked a pull request Mar 5, 2017 that will close this issue
abs51295 added a commit to abs51295/FirstAide-Android that referenced this issue Mar 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging a pull request may close this issue.

4 participants