rmtheis / android-ocr

Experimental optical character recognition app
Apache License 2.0
2.23k stars 894 forks source link

Request permission CAMERA,CALL_PHONE... on android 7.0 #71

Closed nhattv18 closed 7 years ago

nhattv18 commented 7 years ago

Can you tell me why my other project running on Android 7.0 must ask the user to grant dangerous permissions (like CAMERA, CALL_PHONE...) for the first time, but this project running on Android 7.0 automatically gets all permissions?

rmtheis commented 7 years ago

This app has a targetSdkVersion value that's less than 23, so runtime permissions aren't required.

It's best for new apps to target a newer version and prompt users for permissions, though -- it's a better experience for users overall.

nhattv18 commented 7 years ago

Thank you very much, I understand.