As @Taifun said, if a non-media file was created in one of the shared folders, this file can no longer be accessed after uninstalling and reinstalling the app, because the app “has no reminder” that this file was created by the app. In this respect, I have been solving the problem since targetSdk = 30 by always appending a timestamp to the file name.
This block does not return the exact path of the file, it returns /storage/emulated/0/file.pdf when it is actually in /storage/emulated/0/download/file.pdf, how can I make it return the real path? ?
It will return complete file name/path instead of correct file name/path. The method just prefixes external storage path and does not check if file really exists there or not.
i use your custom webview extension for download purpose and it work
but it save in /storage/emulated/0/Android/data/com.myprojectname/files/TempDownload/+label1 text
so i want to show the download files in custom folder like storage/emulated/0/Wallpapers
i use this filetools to move but not working
please reply i am waiting
You can no longer write / save in any folder of the external storage on Android 11. You have to copy / move it (a non-media file) to one of the Shared folders (/Download or /Documents).
Yes, some of our app need the file with same name. So, after we download we need to copy & replace old file. It will help us a lot. You are a big coder. Can you help us by adding this features? I am a big fan of yours. Please give us a update with this option
I need to move a folder & replace all file inside with same name. But not others file inside. Can u suggest me how to do it. Your extension is not replacing folder files