1. Check out our companion app, Forums for Android! Download from Google Play

Setting Ringtone from MP3 on SD Card

Discussion in 'Application Development' started by derrickorama, Jul 13, 2009.

  1. derrickorama

    derrickorama New Member
    Thread Starter
    5

    Jul 13, 2009
    1
    0
    5
    I've been trying to find the correct way to set the ringtone (or notification tone) using a file on the SD card. Basically all I found was this:

    Code (Text):
    1. Settings.System.putString(
    2.     MyApp.this.getContentResolver(),
    3.     Settings.System.RINGTONE,
    4.     "/sdcard/mydir/ringTone.mp3"
    5. );
    I know that the file is there, I know that it is valid, it even returns "true" when I check to see if it set the ringtone. But it doesn't play the MP3. Is there something more I have to do to set the ringtone? Is there some other code I can use?

    Thanks
     

    Advertisement

Share This Page

Loading...