![]() |
2010-05-14
, 08:40
|
Posts: 433 |
Thanked: 274 times |
Joined on Jan 2010
|
#2
|
![]() |
2010-05-14
, 08:44
|
Posts: 1,425 |
Thanked: 983 times |
Joined on May 2010
@ Hong Kong
|
#3
|
system_ring = os.path.basename(proxy.get_value('general','ringin g.alert.tone'))
haven't tried this but I'm guessing that is a rogue space embedded in the above line?
![]() |
2010-05-14
, 08:45
|
|
Posts: 2,121 |
Thanked: 1,540 times |
Joined on Mar 2008
@ Oxford, UK
|
#4
|
![]() |
2010-05-14
, 08:48
|
Posts: 1,425 |
Thanked: 983 times |
Joined on May 2010
@ Hong Kong
|
#5
|
![]() |
2010-05-14
, 11:06
|
|
Posts: 2,121 |
Thanked: 1,540 times |
Joined on Mar 2008
@ Oxford, UK
|
#6
|
![]() |
2010-05-14
, 14:20
|
Posts: 1,425 |
Thanked: 983 times |
Joined on May 2010
@ Hong Kong
|
#7
|
Can I just make sure I've got the general idea of your program correct, based on my inexpert reading of the code: The program runs continuously in the background. When it detects an incoming call, it quickly changes the system-defined ringtone using a symbolic link, based on a lookup of which phone number should be in which group. The actual playing of the tone is done by the phone app itself. Is that right?
Does your app impact battery life, if it is running in the background all the time?
Thinking about a potential GUI, obviously there would need to be a way to define groups (giving each a custom name would be nice), plus a way to pick a ringtone per group. Then there would need to be a way to associate a contact with each group. I wonder if there's a way to hook into the contacts framework to do this. Maybe the group could be stored as a Note field in the contact, or something like that.
![]() |
2010-05-14
, 14:27
|
Posts: 1,224 |
Thanked: 1,763 times |
Joined on Jul 2007
|
#8
|
![]() |
2010-05-14
, 14:34
|
Posts: 1,425 |
Thanked: 983 times |
Joined on May 2010
@ Hong Kong
|
#9
|
![]() |
2010-05-14
, 14:38
|
Posts: 1,224 |
Thanked: 1,763 times |
Joined on Jul 2007
|
#10
|
Hope this help.
http://maemocentral.com/2010/02/22/h...s-on-the-n900/
http://www.maemoers.com/archiver/tid-2364.html
Last edited by 9000; 2010-06-11 at 01:50.