Advertisement
Guest User

Untitled

a guest
Aug 20th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. import inbox, appuifw, e32
  2.  
  3.  
  4. while True:
  5.     def message_received(msg_id):
  6.         box = inbox.Inbox()
  7.         sms_text = box.content(msg_id)
  8.         abc = appuifw.query(u"Ur SMS is:  " + sms_text, "query")
  9.         appuifw.note(u"Handled" , "info")
  10.         app_lock.signal()
  11.  
  12.     box = inbox.Inbox()
  13.     box.bind(message_received)
  14.  
  15.     print "Waiting for new SMS messages.."
  16.     app_lock = e32.Ao_lock()
  17.     app_lock.wait()
  18.     print "Message handled!"
  19. print " "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement