Sub Globals
Dim Button1 As Button
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("1")
RemoveView(Button1)
End Sub
Sub RemoveView (V As View)
For i = 0 To Activity.NumberOfViews - 1
If Activity.GetView(i) = V Then
Activity.RemoveViewAt(i)
Exit
End If
Next
End Sub