How about this ? Uri defuri = RingtoneManager.getDefaultUri (RingtoneManager.TYPE_RINGTONE); Ringtone r = RingtoneManager.getRingtone(mContext, defuri); //where mContext is your Context object r.play();
Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jun 23, 2:45 pm, [email protected] wrote: > Can someone supply some sample code that shows how to cause the default > ringtone to play for about a second and stop? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" 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-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

