12-16-2012 06:21 AM
Hey there!
Having just taken part in the super-hectic and brilliant all aboard portathon, i've run into what looks like a bug, but i would like some feedback on it before reporting it "properly".
According to the documentation, the following code should yield a notification dialog (which it does) with a custom sound set (which it doesn't). The file does exist and the device is able to play it (as confirmed using the MediaPlayer API):
d->notification = new bb::platform::NotificationDialog(this);
d->yesButton = new bb::system::SystemUiButton("Yes");
d->noButton = new bb::system::SystemUiButton("No");
d->notification->appendButton(d->yesButton);
d->notification->appendButton(d->noButton);
d->notification->setSoundUrl("asset:///sounds/boing.wav");
d->notification->show();
Thanks in advance for any help or ideas that might crop up, as of course i would like to be able to port my app properly, using the traditional tea-is-ready sound as found elsewhere, which those using the app are used to meaning "Tea", as opposed to just a generic notification sound which i am currently having to use instead ![]()
12-17-2012 11:24 AM