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

Chapter13 Odometer Service Requires Permissions #25

Open
DuaneQ opened this issue Apr 5, 2017 · 1 comment
Open

Chapter13 Odometer Service Requires Permissions #25

DuaneQ opened this issue Apr 5, 2017 · 1 comment

Comments

@DuaneQ
Copy link

DuaneQ commented Apr 5, 2017

It appears as if the code isn't working in Chapter 13 because when using a dangerous service you explicitly need to ask for permissions from the user.

https://developer.android.com/training/permissions/requesting.html

I'm not sure where the code suggesting on the Android should go?

Could you possibly provide an example on how to resolve this issue?

Thanks

@arieleden
Copy link

I am having the same problem if I had API 23 of more then you can ask for permissions, but I working on API 22 on my device and the app crashes. I tried putting a try catch on the line where the problem was, this was enough for the Android Studio editor, but still the app crashes. I don't understand this because in the book your supposed to use API 16, so how com it doesn't work on API 22? If someone has a solution that doesn't require that I get a new device, please share it with me.

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

2 participants