I know how to search a file, but using a specific path, example /sdcard/picture/file. Is there a way to search for that specific file. Example: search for file. Then the app locate it in /sdcard/picture. Then erase it.
Any help? Thanks (I know how to erase a file, but have to write the entire path)
You can solve that problem recursively starting from the root directory of the external storage / SD card.
Some untested code out of my head (method names could be wrong)
If you want to find all occurrences of that file name on your SD card you’ll have to use a List for collecting and returning all found matches.