View Single Post
Posts: 267 | Thanked: 183 times | Joined on Jan 2010 @ Campinas, SP, Brazil
#43
Originally Posted by fcrochik View Post
You read my mind! I am working on that right now...

I want to try to play the sound instead of changing it on the fly... Do you know if anybody has tried it? You could just assign a "mute" sound to the profile and let my application handle the sound by itself... sounds to me like a better option but I haven't tried it
As for as I know, the problem with this approach is that then you have to do the whole housekeeping with the sound - stop it if the phone hangs or if the person picks up, see if the silence profile is on and not play it, and such. Even though I think the workaround used in the python script I referred to is far from the ideal - temporarily override the location for the ringtone file - it's the best way I know to deal with it, because the phone app is a closed-source application and can't be changed or debugged.
__________________
My nickname on freenode is ptl, that is, the consonants of my nickname here. Kind of a long story.