You Are Here:

Community: Developer Discussion Boards

#1 Old Reading the last received SMS - 2006-11-20, 10:25

Join Date: Sep 2003
Posts: 25
joyce973
Offline
Registered User
Hi, is it possible to read the last received SMS, also specifying the SMS sender's number?
Reply With Quote

#2 Old Re: Reading the last received SMS - 2006-11-25, 17:21

Join Date: Sep 2003
Posts: 25
joyce973
Offline
Registered User
Hi there, anybody giving me any suggestions?
Reply With Quote

#3 Old Re: Reading the last received SMS - 2006-11-25, 18:52

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
hello ,

It's easy
Look at the official documentation in the inbox module (page 39)
You can find in all you need !
Watch out if sms number is in the contact list you get contact name and not phone number !!! (bug ???)


pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 !

pys60 extension modules on http://cyke64.googlepages.com/
Reply With Quote

#4 Old Re: Reading the last received SMS - 2006-11-25, 19:35

Join Date: Sep 2003
Posts: 25
joyce973
Offline
Registered User
ok, yes I had this document! It's very clear...So, if I need to retrieve the last SMS send by a particular number/contact, I should build a for cycle picking up the first element of the i.address array, shouldn't I?
thank you.
Second question (pls pardon me): I also found this code that binds a callback, but it does not work:

import inbox
id=0
def cb(id_cb):
global id
id=id_cb
i=inbox.Inbox()
i.bind(cb)
i.address(id)
i.content(id)

I receive the error:
i.address(id)
SymbianError:[Errno -1]
KErrNotFound

Thank you again!
Reply With Quote

#5 Old Re: Reading the last received SMS - 2006-11-27, 18:12

Join Date: Dec 2004
Posts: 646
jplauril's Avatar
jplauril
Offline
Forum Nokia Expert
As always, post your code inside a code tag or it's unreadable.
Reply With Quote

#6 Old Re: Reading the last received SMS - 2006-11-27, 19:24

Join Date: Sep 2003
Posts: 25
joyce973
Offline
Registered User
what do you mean?
Reply With Quote

#7 Old Re: Reading the last received SMS - 2006-11-27, 19:52

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
Quote:
Originally Posted by joyce973
what do you mean?
hello ,

To preserve indentation in code listing in this forum you need to enclose python code example between special tag (like html tag) like this:
begin code tag is : open bracket then code following close bracket
end code tag is : open bracket then /code following close bracket


example with tag :
Code:
if a==3:
    print
without :
if a==3:
print

Thanks to repost it now your code sample
Cyke64


pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 !

pys60 extension modules on http://cyke64.googlepages.com/
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
SMS: how to write a new received sms into inbox l24012 Symbian Tools & SDKs 2 2004-12-21 02:58
HELP! problem w/ sending and reading sms.. mauve928 General Messaging 0 2003-12-14 20:10
SMS received Confirmation ! naoriya General Messaging 1 2003-07-14 13:43
Reading SMS from D211 on Linux OS. panico Multimodecards 1 2002-12-05 06:40
at commands for reading sms in "My Foldes" elf_legolas General Messaging 1 2002-07-15 10:17

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia