Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Private mytxt As String
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private etxt As EditText
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
etxt.Initialize("etxt")
Activity.AddView(etxt, 0dip,100dip, 100dip,100dip)
End Sub
Sub etxt_TextChanged (Old As String, New As String)
mytxt = New
End Sub
Sub Activity_Resume
If mytxt <> "" Then
etxt.Text = mytxt
End If
End Sub