Android Question A reference guide? And simple workings of a timer?

Servaas

Member
Licensed User
Hello all, still on the trail and I wondering is there in app a reference guide for various calls? I can not seem to find it. Also could someone please post me the code for a simple timer? I manage to dig some code up from the forums but somehow it doesn't tick...

Loving the program, gonna buy it the moment my work situation clears up, this community reminds me of the old days back on Mac OS, first with hypercard tinkering and then later on with REALBasic. You guys are great and I hope, however doubtful, I can someday contribute back to you guys.
 

Servaas

Member
Licensed User
Managed to get it to work using;

B4X:
Dim RotateTimer As Timer
RotateTimer.Initialize("SDTime", 500)  '1000 Milliseconds = 1 second
RotateTimer.Enabled = True

In Process_Globals and then;

B4X:
Sub SDTime_Tick
ImageView4.Left = ImageView4.Left - 6
End Sub

Guess the example was old? The Imageview is moving now though!
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…