Hi,
I have created a standalone application and I m trying to run it on 3rd edition mobile phones.
Its running till one point in my code.Whenever it encountersCode:import appuifw import inbox import e32 import logs import audio import appswitch nbr="+491773097582" #nbr="+4915153190311" nbr_rec=0 app_lock = e32.Ao_lock() def message_recieved(msg_id): global app_lock,nbr box = inbox.Inbox() m=appswitch.switch_to_fg(u"Task") appuifw.note(unicode(str(m)),"info",1) e32.ao_sleep(2) sms_text = box.content(msg_id) l=logs.sms(mode='in') nbr_rec = l[0]["number"] if((nbr_rec==nbr) and (sms_text=="Test")): e32.ao_sleep(3) A = audio.Sound.open("C:\smsalertpolices03.mid") j=None A.play(audio.KMdaRepeatForever) while j is None: j=appuifw.query(u"Danger!!!Press Left Key to Stop the Alarm.","query") A.stop() A.close() app_lock.signal() appuifw.note(u"Starting!!","info") e32.ao_sleep(2) i=appswitch.switch_to_bg(u"Task") appuifw.note(unicode(str(i)),"info",1) e32.ao_sleep(2) appuifw.note(u"Hi m here gng inside","info",1) e32.ao_sleep(2) j=appswitch.switch_to_fg(u"Task") appuifw.note(unicode(str(j))) e32.ao_sleep(2) appuifw.note(u"Back Out Again","info") e32.ao_sleep(2) k=appswitch.switch_to_bg(u"Task") appuifw.note(unicode(str(k)),"info",1) e32.ao_sleep(10) n=appswitch.switch_to_fg(u"Task") appuifw.note(unicode(str(n))) box = inbox.Inbox() appuifw.note(u"Yeah","info",1) box.bind(message_recieved) app_lock.wait() appuifw.note(u"Ended","info",1)
box=box.Inbox()
It stops.I dont know why is this happening.
Plz Help me.
Rishabh

Reply With Quote


