I use "public boolean setLastModified (long time)" to set the file modification time, but always returns false. I saw several similar posts related to this, but none of them could work for me. can someone give me a solution for this?
Please do not post me the URLs, I have already seen them:
file.lastModified () was never installed with file.setLastModified ()
Is it possible to use reset the last modified date of an Android file?
http://www.mkyong.com/java/how-to-change-the-file-last-modified-date-in-java/
setLastModified() seems to be unreliable on Android , it may work on some devices, and not on others.
setLastModified()
Source: https://habr.com/ru/post/953399/More articles:Best way to avoid toast accumulation in Android - javaWhat exactly does $: do. unshift (File.expand_path ("../../lib", __FILE__))? - ruby | fooobar.comCan I explicitly check for cancellation or completion of asynchronous computation? - asynchronousAuto play with You Tube video -? Autoplay = 1 does not work - html5How to parse HTML using C ++ / Qt? - c ++What is the difference between O (1) and Θ (1)? - complexity-theoryAssigning Arabic Text to R Variables - encodingIs it possible to use reset the last modified date of an Android file? - androidImporting master data to an existing project is not performed - iosDisplay images in line (HTML) - htmlAll Articles