get unanswered calls
Posted: 17 Sep 2015 00:30
Hi,
the bigger plan is to to vibrate every 5 minutes if there are missed calls and not doing it otherwise.
the (not yet working) solution i came up with:
trigger: incoming call has status missed
command: content query --uri content://call_log/calls --where "new=0"
script: match=matches(stdout, ".*new=1.*")
if match==true:
vibrate
wait 5 minutes
go to command
stdout returns me the right thing but matching doesn't work.
any more elaborate ways to do what i'm trying to achieve?
what do i do wrong?
also did i get it right that when you have missed calls and you turn on the phone app (and see that there was a missed call) new=1 changes to new=0?
thanks
the bigger plan is to to vibrate every 5 minutes if there are missed calls and not doing it otherwise.
the (not yet working) solution i came up with:
trigger: incoming call has status missed
command: content query --uri content://call_log/calls --where "new=0"
script: match=matches(stdout, ".*new=1.*")
if match==true:
vibrate
wait 5 minutes
go to command
stdout returns me the right thing but matching doesn't work.
any more elaborate ways to do what i'm trying to achieve?
what do i do wrong?
also did i get it right that when you have missed calls and you turn on the phone app (and see that there was a missed call) new=1 changes to new=0?
thanks