'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 tapit As TapitAd
Dim button1, button2, button3, button4 As Button
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("main")
button1.Initialize("button1")
button2.Initialize("button2")
button3.Initialize("button3")
button4.Initialize("button4")
tapit.Initialize("tapit", "5809")
Activity.AddView(tapit, 0, 0, 100%x, 90)
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub tapit_begin
Log("starting download.....")
End Sub
Sub tapit_receivead
Log("succesfully showed ad")
End Sub
Sub tapit_error(reason As String)
Log(reason)
End Sub
Sub button1_Click
tapit.Interstitial(5, 20, 5, True)
End Sub
Sub button2_Click
tapit.Full_Screen(10, False)
End Sub
Sub button3_Click
tapit.Offer_Wall(False)
End Sub
Sub button4_Click
tapit.Video_Ad(False, 20)
End Sub