• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Recycle Bin Functionality of File Manager

Current status:
i current working on file manager project, in which i implementing the recycle bin functionality , till now i am able to move deleted files to my app resource folder for recycle bin , and able to fetch files from that location , too .
Problem:
I also want to implement restore function on files, i get in recycle bin, if anyone , interested , please tell me some idea.

Thanks
 
I know android does not have recycle bin , but we making a facility like that, app example is Dumpster

FWIW Huawei already has one, and maybe there's other devices and apps already do as well.
recycle.jpg
 
I know android does not have recycle bin , but we making a facility like that, app example is Dumpster
Well, you have organized your own RecyclerBin folder and move there deleted files.
I think you should store original path and file properties of deleted file into HashMap.
Then, when you decide to restore this file, use information from HashMap and move file back with original properties.
 
Well, you have organized your own RecyclerBin folder and move there deleted files.
I think you should store original path and file properties of deleted file into HashMap.
Then, when you decide to restore this file, use information from HashMap and move file back with original properties.
Thanks , for enlightening me... Going to implement same. :rob:
 
I know , but my question is how i can do same. Please send some demo code or example code .or show me a way to get same thing,
I'm not a developer, and so can't do that.

i already crawled google pages and stackoverflow pages, however i got nothing.

If there's isn't any open source, or demo code, etc, I guess you'll have to make it yourself. I think how a "recycle bin" or "trash can" operates, is only a folder for temporary storage of files that are moved there, before the user decides if they wish to delete them permanently or not. Could you code that?
 
Last edited:
Back
Top Bottom