Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim label1 As Label
Dim J As Double
Dim textwriter1 As TextWriter
Dim list1 As List
Dim Button1 As Button
Dim Button2 As Button
Dim EditText1 As EditText
Dim EditText2 As EditText
Dim EditText3 As EditText
For y = 0 To main.i
Dim YSpeed(y) As Double
Next
Dim Button3 As Button
End Sub
Sub Activity_Create(FirstTime As Boolean)
activity.LoadLayout("details")
j = 1
label1.Initialize("")
activity.AddView(Label1, 5%x, 10%y, 90%x, 10%y)
Label1.text = "Bend " & j & " Options"
End Sub
Sub Button1_Click
YSpeed(j) = edittext1.Text
List1.Initialize
List1.Add(YSpeed(j))
File.WriteList(File.DirInternal, "Values", List1)
If j = main.i Then
StartActivity("Summary")
j=1
Else
j = j + 1
Label1.text = "Bend " & j & " Options"
End If
End Sub