I was able to set a ringtone for my app like this in Android 1.6, but it does not seem to work in 2.0.
On Dec 11, 11:39 am, Maurício <[email protected]> wrote: > I have a problem setting aringtonefrom a resource in my app: > > Uri uri = Uri.parse("android.resource://com.package.app/" + > R.raw.sound1); > RingtoneManager.setActualDefaultRingtoneUri(this, > RingtoneManager.TYPE_RINGTONE, uri); > > I've noticed also some people had the same problem but got no answers. > Do any of you guys have any idea of how making this work? (without > having to copy the file to the sdcard) > > Cheers -- 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

