Setting Ringtone from MP3 on SD Card


Last Updated:

  1. derrickorama

    derrickorama New Member This Topic's Starter

    Joined:
    Jul 13, 2009
    Messages:
    1
    Likes Received:
    0
    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...