Friday, 15 January 2010

audio - Android: play notification sound from a server? -



audio - Android: play notification sound from a server? -

i plan playing sound on server online, when user gets notification (via gcm). local sounds work fine notification.sound = uri.parse("file:///sdcard/notification/ringer.mp3");

but if want play online-sound, not work: notification.sound = uri.parse("http://www.myserver.com/ringer.mp3");

perhaps, trick play no notification-sound , open activity plays online-sound "buildmediaplayer" instead?

android audio notifications

No comments:

Post a Comment