I can't play a ringtone once even if mediaplayer looping property is set to false. It looks like this property was overriden by the ringtone URI
used. So onCompletion
is never fired.
Curiously, if the URI
corresponds to a notification tone, looping behaves according to setLooping
. It works well here.
So is there a way to play a ringtone once?