Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

I am saving the ringtone through my application but unable to check for the name if it already exists , so again it is overwritten in the ringer directory.
Please suggest me the way to sort it out.

Thanks & Regards,

The first thing that you should do is get the ringer name that you are assigning, if you directly have the ringer name then its fine or else if you are assigning a mp3 as a ringer and the filename and the name of the ringer is different then you will have to retreive the ringer name from the ID3 tag info of the file, this information is present in the last 64 bytes of the file.
Then CreateInstance of IRingerMgr and by calling IRINGERMGR_GetRingerInfo() you can get the name of the Ringers that are present on the handset. Check all the ringers in a loop.

The first thing that you should do is get the ringer name that you are assigning, if you directly have the ringer name then its fine or else if you are assigning a mp3 as a ringer and the filename and the name of the ringer is different then you will have to retreive the ringer name from the ID3 tag info of the file, this information is present in the last 64 bytes of the file.
Then CreateInstance of IRingerMgr and by calling IRINGERMGR_GetRingerInfo() you can get the name of the Ringers that are present on the handset. Check all the ringers in a loop.