In the Example of Searchview there is a file called Cities.txt.
After installing the app on my phone I looked for this file and cannot find it on my android device. There is also no information how this file is populated and from where.
It this an Android system file ?
Could I make my own file in this same format? is it comma delimited ? or plain text.
Thank you
After installing the app on my phone I looked for this file and cannot find it on my android device. There is also no information how this file is populated and from where.
It this an Android system file ?
Could I make my own file in this same format? is it comma delimited ? or plain text.
Thank you
B4X:
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("1")
If FirstTime Then
Dim cities As List = File.ReadList(File.DirAssets, "Cities.txt")
'As an optimization we store the index as a process global variable
'and only build it once.
index = SearchView1.SetItems(cities)
Else
SearchView1.SetIndex(index)
End If
ime.Initialize("ime")
ime.AddHeightChangedEvent
End Sub