Android Question can't play sound

Hamied Abou Hulaikah

Well-Known Member
Licensed User
Longtime User
i defined
B4X:
 Dim SOUNDID As Int
            Dim  sounds As SoundPool
in global processes
and i bot the initialization in Activity_Create
B4X:
  sounds.Initialize(1)
and i put this code
B4X:
  SOUNDID = sounds.Load(File.DirAssets,"notify.mp3")
        sounds.Play(SOUNDID, 1, 1, 10, 0,0)
in command button
and i have notify.mp3 in my DirAssets
but when i press the button no thing played
what the reason is????
 
Top