Hello,
I have created one activity [Act1] and created one file named List.txt.
The file can be read successfully from Act1.
But if I want to read the file rom Act2 , the error is coming as below :
(FileNotFoundException) java.io.FileNotFoundException: /data/user/0/example.test.example/files/List.txt (No such file or directory)
The below is the code from Act1 [Creation of File] :
File.WriteString(File.DirInternal, "List.txt", "resume")
Try
Log(File.ReadString(File.DirInternal, "List.txt"))
Catch
Log(LastException)
End Try
The code from Act2 [read of File]
Try
Dim str As String
str=File.ReadString(File.DirInternal, "List.txt")
If str="resume" Then
ResumeActivity=True
Log(str)
End If
File.Delete(File.DirInternal,"List.txt")
Catch
Log(LastException)
End Try
Please advice