Categories: Python | Code Examples | S60 | How To | PIM
This page was last modified 17:42, 9 April 2008.
How to display unread messages
From Forum Nokia Wiki
This is how to display the content of unread SMS messages in PyS60.
import e32, appuifw, inbox def quit():app_lock.signal() appuifw.app.exit_key_handler=quit i=inbox.Inbox() t=appuifw.Text() appuifw.app.body=t p=0 for mes_id in i.sms_messages(): #Checks all the ids #If the message has not yet been read it is written on the screen if(i.unread(mes_id)<>0): p+=1 t.add(u"Message %d:\n\n" % p) t.add(i.content(mes_id)+"\n\n") app_lock=e32.Ao_lock() app_lock.wait()
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| iso-10646-ucs-2 in mms subject | allblue_ | General Messaging | 5 | 2003-12-07 15:12 |
| copying a dll or exe to device | araja | General Symbian C++ | 7 | 2007-11-22 19:39 |
| Largest Image size | e4bdevelop | General Messaging | 1 | 2002-08-02 09:13 |
| Moving SMS messages from old to new phone | constable | General Discussion | 3 | 2003-04-15 15:23 |
| Display InformationNote when app in background | abolfoooud | General Symbian C++ | 2 | 2007-01-09 04:40 |
