current position:Home>Android 11 targetsdkversion 30 problem

Android 11 targetsdkversion 30 problem

2022-02-03 02:37:26 CSDN Q & A

targetSdkVersion 30 Package problem for

1、 Cannot be in App Create folders in places other than your own Is there any other way to solve this problem

2、file.listFiles(); The method Android 11 It's time consuming to get Pictured
Android11 following file.listFiles() Time

img

Android11 And above file.listFiles() Time

img

3、 give up file.listFiles() Method Use MediaStoreAPI File query however MediaStore Of files The library has not been updated For example, just put a song into the mobile phone Or through other App Put in a song And then through MediaStore To query the audio, you can't find the song just put in Use scanfile() scanning Android7.1.1 Test version scanfile() Cannot update

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/02/202202030237227338.html

Random recommended