[android-developers] Re: Why is Ringtone.play() sometimes silent when the screen is off ?

2009-01-15 Thread jarkman
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

[android-developers] Re: Why is Ringtone.play() sometimes silent when the screen is off ?

2009-01-14 Thread Dave Sparks
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.