I need to press button and hold for a specified time ( for 4-5 seconds)then need to do some task, I didn't see any option for it.
Can you help..
Can you help..
Sub Button1_Click
End Sub
Sub Button1_LongClick
End Sub
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim ButtonTimer As Timer
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 Button1 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("1")
ButtonTimer.Initialize("B1Timer",4000)
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
ButtonTimer.Enabled = False
End Sub
Sub Button1_Down
ButtonTimer.Enabled = True
End Sub
Sub Button1_Up
ButtonTimer.Enabled = False
End Sub
Sub B1Timer_Tick
Log("B1timer_Tick")
'We got here so the button must still be pressed
ButtonTimer.Enabled = False
'Do Whatever
End Sub