In Android Studio 1.3 & Android Support Library v7:22.2.0, you have solution for it.
Steps:
- Update Android Studio to V1.3
- Update your Android Support Library to v7:22.2.0
- Run Android Lint (Analyse -> Inspect Code), In Lint Error see for Type “Android -> Constant & Resource Type MisMatch”, Which shows all methods which requires permission.
Explanation
- Android has introduced new annotation @requirespermission.
- All SDK methods which requires permission are annotated with @requirespermission.
- When we call any sdk method which requires permission without properly checking whether we have permission or not, Android studio will through lint error.