Apparently I'm an idiot.
The problem is not with the ringtone, but with our activity, which
(when the screen is off) gets an onPause immediately after starting
up.
I guess the system is pausing the activity because the user can' see
it, and it doesn't want to waste effort running it. Does that
I'd have to look at the code, but it doesn't surprise me. The phone
app/lock screen is a tricky bit of code and I don't think it was
intended for the ringtone to play while the screen is off.
Is there a reason you chose the Ringtone class to play your sound?
There are other options e.g.
2 matches
Mail list logo