Did you solve this problem? I'm having the same trouble when using a 2.0 emulator. The Ringtone manager doesn't play my raw resource sound, it plays the default phone ringtone.
On Nov 15, 2:17 pm, Bryan Vincent <[email protected]> wrote: > So I'm having a hard time setting aringtonefrom a raw resource. My > code is below. Any help would be much appreciated. > > RingtoneManager.setActualDefaultRingtoneUri(getApplicationContext(), > RingtoneManager.TYPE_NOTIFICATION, Uri.parse("android.resource:// > net.thebosskey.gijoepsasoundboard/" + this.resource)); > > However, when I play back the default notification sound using the > line below, it is not my sound. > RingtoneManager.getRingtone(getApplicationContext(), > RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION)).play > (); > > I know the uri for my sound is correct because the following line > plays it: > RingtoneManager.getRingtone(getApplicationContext(), Uri.parse > ("android.resource://net.thebosskey.gijoepsasoundboard/" + > this.resource)).play(); > > What am I doing wrong? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

