#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Private xui As XUI
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
Public sp As SoundPool
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Layout")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Button1_Click
xui.MsgboxAsync("Hello world!", "B4X")
sp.Initialize(1)
Dim LoadID As Int
Dim NewLoad As Int
LoadID=sp.Load(File.DirAssets,"Ring06.wav")
'MsgboxAsync(LoadID,"LoadID")
NewLoad=sp.Play(LoadID,1,1,1,1,1)
'MsgboxAsync(NewLoad,"NewLoad")
End Sub