Archived:How to get last missed call using PySymbian
Aquivado: Este artigo foi arquivado, pois o conteúdo não é mais considerado relevante para se criar soluções comerciais atuais. Se você achar que este artigo ainda é importante, inclua o template {{ForArchiveReview|escreva a sua justificativa}}.
All PySymbian articles have been archived. PySymbian is no longer maintained by Nokia and is not guaranteed to work on more recent Symbian devices. It is not possible to submit apps to Nokia Store.
All PySymbian articles have been archived. PySymbian is no longer maintained by Nokia and is not guaranteed to work on more recent Symbian devices. It is not possible to submit apps to Nokia Store.
This article contains code to get last missed call from the logs using PySymbian.
Article Metadata
Tested with
Devices(s): N70, N95 8gb
Compatibility
Platform(s): S60 2nd edition, 3rd Edition
Article
Keywords: logs, globalui
Created: User:Kandyfloss
(23 Mar 2008)
Last edited: hamishwillee
(08 May 2013)
Contents |
Preconditions
- Logs Module and globalui module is available in PySymbian 1.4.4 and later.
Code Snippet
import logs
from globalui import*
import appuifw
appuifw.app.title = u"Log Module" #sets the title for the script
l=logs.calls(mode='missed')[0] #Use 'in' and 'out' for other entries instead of 'missed'
t = l["number"]#Returns the value for the entry "number"
global_msg_query(u""+t,u"Last Missed Call",7) #gives a global query with last missed call
Postconditions
- Below is the screenshot for the above code



20 Sep
2009
23 Sep
2009