• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.
I adapted to the new permissions and wanted to check if the READ_MEDIA_AUDIO was set by calling
if(ContextCompat.checkSelfPermission(getApplicationContext(), android.Manifest.permission.READ_MEDIA_AUDIO
!= PackageManager.PERMISSION_GRANTED)
But the new permissions are not in the list of android.Manifest.permission so this won't compile.
I've googled for the answer for a couple of hours now... Anybody knows how to handle this?
/Anton
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones