Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim EQ As EQlib
Dim MP As MediaPlayer ' (1)
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Just layout stuff
Activity.LoadLayout("EQ.bal")
'size the background to full screen
EQPnlBG.SetLayout(0,0,100%x,100%y)
'Center the EQ panel
EQPnl.Left=(Activity.Width-EQPnl.Width)/2
EQPnl.Top=(Activity.Height-EQPnl.Height)/2
MP.Initialize2("MP") ' (2)
MP.Load(File.DirAssets,"monday.mp3") '(3)
MP.play '(4)
End Sub