Last Accessed Time of any file in Android

后端 未结 3 1763
小蘑菇
小蘑菇 2020-12-30 04:21

file.lastModified() returns the last modified date. File does not seem to have any method to fetch lastAccessed date. Is there a way to programmatically fetch t

3条回答
  •  孤城傲影
    2020-12-30 04:36

    Try this:

    javaxt.io.File file = new javaxt.io.File("file-path");
    file.getLastAccessTime();
    

提交回复
热议问题