Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim MP As MediaPlayer
Dim btnDimmi As Button
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("play")
end sub
Sub btnDimmi_Click
'Check to see if playing has finished, or you could stop it if you want to interrupt the current tune
If MP.Isplaying then Return
'If you want to stop it use MP.Stop instead of Return
If MP.IsInitialized then MP.Release
MP.Initialize
MP.Load(File.DirAssets,"fire.wav")' and change the file name
MP.Play
End Sub