#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
Private mp As MediaPlayer
End Sub
Sub Globals
Dim label1 As Label
End Sub
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
mp.Initialize2("mp")
mp.Load(File.DirAssets, "sound.mp3")
End If
label1.Initialize("")
Activity.AddView(label1, 10dip, 10dip, 100dip, 50dip)
Play
End Sub
Sub Play
label1.Text = 0
mp_Complete
End Sub
Sub mp_Complete
If label1.Text < 5 Then
mp.Play
label1.Text = NumberFormat(label1.Text + 1, 0, 0)
End If
End Sub