Hi to All
I have now met the problem to manage an External sd card. Reading the posts here I found a Class "ManageExternalStorage" by AGraham, and an "ExternalStorage" by Erel. The second allows me to navigate and get access to the Sd folder and see the files that I need to read. BUT, as long as I try to "hack" the simple thing that I need, namely how to read the files, I discover that all the mechanism is inside the Lib, and for me is useless because, in my case, my App must automatically read the files, not ask the User to do it (btw the files are several thousands..). The first AGraham's App, initially, displayed a message asking : "This app requires access to all files, please enable the option" (Image1). Answering Yes, it displays anyway a list of Internal Android Directories, like in Image2. No access to external Sd storage. To be sure to enable the required permissions, I changed the default name of the App, to "ExStor". Changed also in AGraham's code (project attached). Then I found where to allow all storage permissions for ExStor in Android definitions and allowed all. As a matter of fact now the App doesn't display the above mentioned message .. but .. no Sd card access anyway.
At the end, what I need is to access thousands of files from the Sd card. At the moment, I manage them in DirDefaultExternl (ok .. GetSafeDirExternal.. of course). I dont' have to copy them or see them or whatever else. Just read from my App when necessary. The use of an external Sd card is justified, besides the number and global dimension of the files, from the fact that it is much faster to load them on a computer and after put the loaded Sd card on the tablet, which may be elsewhere.
Any suggestion? Thanks in advance.
I have now met the problem to manage an External sd card. Reading the posts here I found a Class "ManageExternalStorage" by AGraham, and an "ExternalStorage" by Erel. The second allows me to navigate and get access to the Sd folder and see the files that I need to read. BUT, as long as I try to "hack" the simple thing that I need, namely how to read the files, I discover that all the mechanism is inside the Lib, and for me is useless because, in my case, my App must automatically read the files, not ask the User to do it (btw the files are several thousands..). The first AGraham's App, initially, displayed a message asking : "This app requires access to all files, please enable the option" (Image1). Answering Yes, it displays anyway a list of Internal Android Directories, like in Image2. No access to external Sd storage. To be sure to enable the required permissions, I changed the default name of the App, to "ExStor". Changed also in AGraham's code (project attached). Then I found where to allow all storage permissions for ExStor in Android definitions and allowed all. As a matter of fact now the App doesn't display the above mentioned message .. but .. no Sd card access anyway.
At the end, what I need is to access thousands of files from the Sd card. At the moment, I manage them in DirDefaultExternl (ok .. GetSafeDirExternal.. of course). I dont' have to copy them or see them or whatever else. Just read from my App when necessary. The use of an external Sd card is justified, besides the number and global dimension of the files, from the fact that it is much faster to load them on a computer and after put the loaded Sd card on the tablet, which may be elsewhere.
Any suggestion? Thanks in advance.