I need some help. I made a Battery monitoring app with notification and i need to play default alarm sound even in do not disturb mode (alarm only or vibrate), i suppose in STREAM_ALARM mode. Can somebody help me?
Dim mp As MediaPlayer
mp.Initialize
Dim r As Reflector
r.Target = mp
r.Target = r.GetField("mp")
r.RunMethod2("setAudioStreamType","4","java.lang.int")
mp.Load(File.DirAssets, "alarmsound.mp3")
mp.Play
but i want to play default alarm sound, not alarmsound.mp3.
How can i play default alarm sound?
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.