Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private lock9 As Lock9View
Private locked As Boolean = True
Private btnLock As Button
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")
lock9.LineColor = Colors.White
lock9.LineWidth = 5dip
End Sub
Sub lock9_onFinish(password As String)
Log($"lock9_onFinish(${password})"$)
If password = "123698745" Then
lock9.Visible = False
locked = False
End If
End Sub
Sub Activity_Resume
Log("Resume("&locked&")")
If locked = True Then
lock9.Visible = True
lock9.refresh
Activity.Invalidate
End If
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub btnLock_Click
locked = True
lock9.Visible = True
lock9.refresh
End Sub