what happens is this: when I run the code without interruptions, the result is the error shown.
but when I enter a "breakpoint" and continue with "F8" on point "parser.Initialize ..." Seldom happens the error.
I believe Basic4Android need a "timer" to end the command "file.readstring." so, i inserted a code for entering commands had a break of 6 seconds (wait (seconds) ):
Dim parser As JSONParser
Dim ListaMatriz As List
parser.Initialize(File.ReadString(File.DirRootExternal, pageTwitter.json"))
wait(2) ' aguarda 2 segundo
Log("pageTwitter:" & parser)
wait(2) ' aguarda 2 segundo
ListaMatriz.Initialize
ListaMatriz.Clear
wait(2) ' aguarda 2 segundo
ListaMatriz = parser.NextArray
thus also not the error appears !!!
I am using android emulator. Do you think the error may be the time required for reading file.readstring or may be because I use the sdcard?
Thanks