i guess i found solution. ID is not unique, ID with combination with
URI is (one of items with same id was external and one internal)
so i was wrong that both ringtones were created from music file - one
of them was bultin

On 11. Nov, 23:32 h., Selmi <[EMAIL PROTECTED]> wrote:
> hi
>
> i found what was problem with my application (thread differences
> between emulator (1.0rc1) and actual device (g1) ).
>
> problem is not with list of checkboxes, but somehow ringtone manager
> shows same id for two different ringtones! how its possible? both
> ringtones are created from music file and both have id 15
>
> RingtoneManager  mRingtoneManager=new RingtoneManager(this);
> mRingtoneManager.setIncludeDrm(true);
> Cursor cursor=mRingtoneManager.getCursor();
>
> now when i list cursor for id and title
>                         cursor.moveToPosition(position);
>                         long 
> realid=cursor.getLong(RingtoneManager.ID_COLUMN_INDEX);
>                         String 
> text=cursor.getString(RingtoneManager.TITLE_COLUMN_INDEX);
>
> i find that there are 2 ringtones with id 15 which have different
> title! how its possible? how can i distinct which alarm is which? by
> name?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
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