The method getExternalStoragePublicDirectory()
is deprecated in Android Q. Now how to save and read a file? A file may be a txt file, pdf, mht format file etc, but it would not be an image.
As there is also a way to save a file using Storage Access Framework, but it is not fulfilling my requirement as it allow user to save file where they want to save it, but I want to save a file in a specific directory as we were doing through getExternalStoragePublicDirectory()
and then also display all the saved files within a list.