I am working on storage cleaner android app and i want to tell user that these files are not used since 3 months or some other time and ask user to delete them.
How can i do this in android programatically ??
Thanks
I am working on storage cleaner android app and i want to tell user that these files are not used since 3 months or some other time and ask user to delete them.
How can i do this in android programatically ??
Thanks
Its answer was simple i found this after a bit of messing my head. just create file object like this
File file = new File(path_of_file_you_want_to_get_date_for);
Date date = new Date(file.lastModified());