Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import inbox, appuifw, e32
- while True:
- def message_received(msg_id):
- box = inbox.Inbox()
- sms_text = box.content(msg_id)
- abc = appuifw.query(u"Ur SMS is: " + sms_text, "query")
- appuifw.note(u"Handled" , "info")
- app_lock.signal()
- box = inbox.Inbox()
- box.bind(message_received)
- print "Waiting for new SMS messages.."
- app_lock = e32.Ao_lock()
- app_lock.wait()
- print "Message handled!"
- print " "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement