Hi,
In my app, I open various files and split them into words as shown in "Sub Display"
If I try to open a large text file (120kb) and split it, it takes well over 10mins to open.
I noticed that if I request to open the 120kb file straight from "Sub Activity_Create(FirstTime As Boolean)" when the app is first loading it take only 20secs to open the 120kb file.
Any idea what is going on?
Sub Display
txt = File.GetText(File.DirAssets, "text.txt") 'split text in each word
arrWord = Regex.Split(" ", txt)
For k = y To arrWord.Length - 1
Log(arrWord(k) & " " & arrWord(k).Length)
CCT.AddLinkText(lblText,arrWord(k).Trim & " ",Colors.black,"GetString")
Next
Label4.Text = Spinner1.SelectedItem
SetText
End Sub
In my app, I open various files and split them into words as shown in "Sub Display"
If I try to open a large text file (120kb) and split it, it takes well over 10mins to open.
I noticed that if I request to open the 120kb file straight from "Sub Activity_Create(FirstTime As Boolean)" when the app is first loading it take only 20secs to open the 120kb file.
Any idea what is going on?
Sub Display
txt = File.GetText(File.DirAssets, "text.txt") 'split text in each word
arrWord = Regex.Split(" ", txt)
For k = y To arrWord.Length - 1
Log(arrWord(k) & " " & arrWord(k).Length)
CCT.AddLinkText(lblText,arrWord(k).Trim & " ",Colors.black,"GetString")
Next
Label4.Text = Spinner1.SelectedItem
SetText
End Sub