On Mon, Jun 1, 2009 at 11:13 PM, Nirav<[email protected]> wrote:
>
> How to set ringtone by using filename inplace of using its ID number.
> I don't want to use.....
> Uri newUri=Uri.parse("content://media/external/audio/media/"+
> (String.valueOf(position+1)));
> Settings.System.putString(this.getContentResolver(),
> Settings.System.RINGTONE, newUri.toString());
Why not?
> Inplace of this newUri ,I want to use filename....means
> Uri newUri =Uri.fromFile(".......");
> How can I use this Uri to set Ringtone.....
> Thank You......
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---