Android set ringtone failure
<p>I try the following code and it doesn't set the ringtone. The logcat entry for "ff" says null so I guess the URI isnt being concatenated properly?, I cant seem to figure out where in my code I am going wrong.</p>

<pre><code>String filepath =Environment.getExternalStorageDirectory().toString()+"//media//audio//ringtones//bluemoon.mp3";
               File ringtoneFile = new File(filepath);
               ContentValues content = new ContentValues();
               content.put(MediaStore.MediaColumns.DATA,ringtoneFile.getAbsolutePath());
               content.put(MediaStore.MediaColumns.TITLE, "test");
               content.put(MediaStore.MediaColumns.SIZE, 215454);
               content.put(MediaStore.MediaColumns.MIME_TYPE, "audio/mpeg");
               content.put(MediaStore.Audio.Media.ARTIST, "artist");
               content.put(MediaStore.Audio.Media.DURATION, 230);
               content.put(MediaStore.Audio.Media.IS_RINGTONE, true);
               content.put(MediaStore.Audio.Media.IS_NOTIFICATION, false);
               content.put(MediaStore.Audio.Media.IS_ALARM, false);
               content.put(MediaStore.Audio.Media.IS_MUSIC, false);
               Log.i("BOOM", "the absolute path of the file is :"+ringtoneFile.getAbsolutePath());
               Uri uri = MediaStore.Audio.Media.getContentUriForPath(
               ringtoneFile.getAbsolutePath());
               Uri newUri = getApplicationContext().getContentResolver().insert(uri, content);
               Uri ringtoneUri = newUri;
               Log.i("ff","the ringtone uri is :"+ringtoneUri);
               RingtoneManager.setActualDefaultRingtoneUri(getApplicationContext(),
               RingtoneManager.TYPE_RINGTONE,newUri);
</code></pre>
