To access the ringtones, I recommend android.media.RingtoneManager: http://developer.android.com/reference/android/media/RingtoneManager.html
To show a ringtone picker to the user, use the android.intent.action.RINGTONE_PICKER intent to launch the picker as a subactivity. Yusuf Saib Android ·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 May 1, 6:24 am, Mark Murphy <mmur...@commonsware.com> wrote: > Olivier Tournaire wrote: > > My intent is to make the phone ring. > > If by "ring" you mean you want to play a sound, use MediaPlayer or > SoundPool (or perhaps AudioTrack -- I have not looked into that class), > and use AlarmManager to schedule it. Also, be sure to use a WakeLock to > ensure the device is awake long enough for your ring to be completed. > > If by "ring" you mean actually have a call come into the device, you > would have to initiate the call from someplace other than the device > itself, which means this is no longer an Android issue. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > Warescription: Three Android Books, Plus Updates, $35/Year --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---