1

I was reading the thread: Android Marshmallow Location Permission handling And now, I can handle the location and some other permissions in android API 23, but, how I can know if the previous android versions have the location permission enable?

Community
  • 1
  • 1
Benjamin RD
  • 11,516
  • 14
  • 87
  • 157
  • There is no runtime permission model on pre marshmallow devices. The only thing that was done is the AppOpsManager. Usually, your permissions are granted on pre MarshMallow by default if you added them to manifest. – Opiatefuchs Dec 11 '16 at 17:22
  • found a thread about here: http://stackoverflow.com/questions/28921136/how-to-check-if-android-permission-package-usage-stats-permission-is-given – Opiatefuchs Dec 11 '16 at 17:23
  • Try this it may be work http://stackoverflow.com/a/41221852/5488468 – Bipin Bharti Jan 03 '17 at 10:55

0 Answers0