Home > Mobile >  Android10 access file
Android10 access file

Time:09-29

Android10 access File, the File File=new File (STR); Cannot be used with the they said can't find the file, no permission,,, but is already applied for a, who did adaptation, targetSdkVersion 28 is ok, but use targetSdkVersion 29 can appear such circumstance, and they were afraid after Google and upgrade the system, the old is unusable

CodePudding user response:

Cannot use file://such form to access files or complains FileUriExposedException, now switch to FileProvide to access the file,

CodePudding user response:

What is the specific code, I studied the two days, still can't do it for image File to the File object, demand: avatar uploaded to the server

CodePudding user response:

Look at my blog
  • Related