Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
' Create an array of states
Dim StateDropdown As Spinner
End Sub
Sub Activity_Create(FirstTime As Boolean)
Dim statesarray() As String
Dim statesstr As String
statesstr = "Alabama,Alaska,American Samoa,Arizona,Arkansas,California,Colorado,Connecticut,Delaware,District of Columbia,Florida,Georgia,Guam,Hawaii,Idaho,Illinois,Indiana,Iowa,Kansas,Kentucky,Louisiana,Maine,Maryland,Massachusetts,Michigan,Minnesota,Mississippi,Missouri,Montana,Nebraska,Nevada,New Hampshire,New Jersey,New Mexico,New York,North Carolina,North Dakota,Northern Marianas Islands,Ohio,Oklahoma,Oregon,Pennsylvania,Puerto Rico,Rhode Island,South Carolina,South Dakota,Tennessee,Texas,Utah,Vermont,Virginia,Virgin Islands,Washington,West Virginia,Wisconsin,Wyoming"
statesarray = Regex.Split(",",statesstr)
StateDropdown.Initialize("StateDropdown")
StateDropdown.AddAll(statesarray)
StateDropdown.Add("Test")
Dim layoutname As String
layoutname = "mainview.bal"
Activity.LoadLayout(layoutname)
End Sub