You can play them using the AudioManager and Javaobject:
B4X:
Dim Effect As Int = 0
Dim Vol As Float = 1.0
Dim CTX As JavaObject
CTX.InitializeContext
Dim AM As JavaObject = CTX.RunMethod("getSystemService",Array("audio"))
AM.RunMethod("playSoundEffect",Array(Effect,Vol))
From the documentation, you may need to enable and/or load the sounds. But it works on My Nexus7 with the user setting disabled, So it may not be an issue.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.