Hi
I have problem with a simple thing and I cant to solve it . I dont know where is problem. Maybe you help me.
I want to print incoming sms, so I write code:
import inbox
import e32
def detect_sms(sms_id):
box = inbox.Inbox()
cont_sms = box.content(sms_id)
number = box.address(sms_id)
smsinfo = "id:" + str(sms_id) + "Number:" + str(number) + "Cont:" + str(cont_sms) + "|"
print(smsinfo)
box = inbox.Inbox()
box.bind(detect_sms)
Emulator returns error:
Traceback (most recent call last)
File "c:\python\z_test.py", line 7, in detect_sms
number = box.address(sms_id)
SymbianError: [Errno -21]
KErrAccessDenied
Thank you for help

. Maybe you help me.
Reply With Quote





