I need to transfer a file from one directory to another in the Android file system. How can I programmatically check if these two paths are on the same mount point?
The reason I want to know this is because if they are, we need to copy the bits instead of File.rename (newPath) .
Examples when the paths are at different mount points:
source
share