Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("1")
File.WriteString(File.DirInternal, "test.txt", "111")
Log($"$DateTime{GetCreationTime(File.DirInternal, "test.txt")}"$)
End Sub
'Android 26+
Sub GetCreationTime (Dir As String, FileName As String) As Long
Dim Files As JavaObject
Files.InitializeStatic("java.nio.file.Files")
Dim FileSystems As JavaObject
Dim FileSystem As JavaObject = FileSystems.InitializeStatic("java.nio.file.FileSystems").RunMethod("getDefault", Null)
Dim Path As JavaObject = FileSystem.RunMethod("getPath", Array(File.Combine(Dir, FileName), Array As String()))
Dim BasicFileAttributes As JavaObject
BasicFileAttributes.InitializeStatic("java.nio.file.attribute.BasicFileAttributes")
Dim LinkOptions As JavaObject
LinkOptions.InitializeArray("java.nio.file.LinkOption", Array())
Return Files.RunMethodJO("getAttribute", Array(Path, "creationTime", LinkOptions)).RunMethod("toMillis", Null)
End Sub