Many thanks mvuori for your reply , some how I feel your answer but I'm confused a little bit about this line :
Make that thread keep a list of new incoming items - runnng constantly - which list your main app loop would poll and make the query about and then remove from the list.
I'm using this code below to notify me when incoming call event happens :-
Code:
def handle_call(callstate)
#globalui.global_note(u'You have received %d missed calls','info')
telephone.incoming_call() # waits for an incoming call
telephone.call_state(handle_call)
So how can I make it to run in a different thread other than the UI thread ??
If you can explain it a little more that would be appreciated.