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