In android, files are managed through content providers. For each file there is an index in the content provider, and we access them with the cursor. you can track the index from the content provider using the cursor and move it to another location and update the content provider
source share