My question is not duplicate to:
Environment.getExternalStorageDirectory() deprecated in API level 29 java or
Android 11 Scoped storage permissions or
Android 11 - Accessing Files in my app Android/Data folder
Answers provided in above links doesn't solve my problem as my App already targets API level 30.
Environment.getExternalStorageDirectory() is deprecated in API level 29 java.
I made a folder in External directory when API level was below 29 and had my encrypted DB placed there. I have to upgrade to API 30 as Android has forced me to do so. Now I am unable to access my folder when I moved to API 30. How can I move that folder to a place which can be easily accessible by getExternalFilesDir()?
I cannot access through getExternalFilesDir() or MediaStore as the file is not media file. I cannot use Intent actions as I can't ask app user to access the folder. Please help.