You can't...you'll have to use some sort of hash table or dictionary
(String to int) to really get that same effect.

Its kind of unfortunate that the system uses the id numbers but at the
same time, its more efficient in the long rong.

On Jun 2, 12:13 am, Nirav <[email protected]> wrote:
> How to setringtoneby 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());
>
> Inplace of this newUri ,I want to use filename....means
> Uri newUri =Uri.fromFile(".......");
>  How can I use this Uri to setRingtone.....
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to