'Activity module
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
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.
Dim sv As ScrollView
Dim ed As EditText
Dim o As Reflector
End Sub
Sub Activity_Create(FirstTime As Boolean)
sv.Initialize(0)
activity.AddView(sv, 0, 0, -1, -1)
ed.Initialize("")
ed.Gravity = Gravity.TOP
o.Target = sv
Dim args(3) As Object
args(0) = ed
args(1) = -1
args(2) = -2
Dim types(3) As String
types(0) = "android.view.View"
types(1) = "java.lang.int"
types(2) = "java.lang.int"
o.RunMethod("removeAllViews")
o.RunMethod4("addView", args, types)
o.RunMethod2("setFillViewport", "true", "java.lang.boolean")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub