| Reply | « Previous Thread | Next Thread » |
|
code:
import logs m=logs.calls(mode='in') print m["name"] print m["number"] print m["duration"] print m["date"] This code is not displaying name & date,only displays number & duration. How to diplay name & date.plz reply soon. |
|
Join Date: Feb 2008
Posts: 2,543
Location: Bhavnagar, Gujarat, India
gaba88
Online
Forum Nokia Champion
|
|
|
Quote:
if the number is stored in your contact database then you will surely get the name otherwise you have to workout for another code. Enjoy Pythoning Gaba88 Gargi Das- http://gargidas.blogsot.com Forum Nokia Python Wiki Learn Python at http://mobapps.org/PyS60 |
|
Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
Offline
Forum Nokia Champion
|
|
The name is only displayed if it's in your contacts list. Also, the variable m is a list of entries, so you have to check only one entry at a time (that's why I added [0] at the end).
Code:
import logs, time m=logs.calls(mode='in')[0] print m["name"] print m["number"] print m["duration"] print time.ctime(m["time"]) |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Nokia 5800 problems wz incoming and outgoing call display. | tigerbalm | General Discussion | 1 | 2009-01-08 06:11 |
| How to disconnect incoming call before answer in S60 3rd Edition? | aamitgupta | General Symbian C++ | 18 | 2008-12-26 13:25 |
| N73: Game music remains during incoming call recived | zappu | Mobile Java Games | 0 | 2008-06-24 08:37 |
| Problem with rejecting incoming call with CTelephony | rahulm | General Symbian C++ | 2 | 2008-05-02 12:41 |
| Bring App to foreground on incoming call | ag24master | General Symbian C++ | 3 | 2006-06-30 14:00 |