You Are Here:

Community: Developer Discussion Boards

#1 Old how to display the name of incoming call? - 2009-02-02, 18:01

Join Date: Jan 2009
Posts: 10
pkavita
Offline
Registered User
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.
Reply With Quote

#2 Old Re: how to display the name of incoming call? - 2009-02-02, 18:23

Join Date: Feb 2008
Posts: 2,543
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Online
Forum Nokia Champion
Quote:
Originally Posted by pkavita View Post
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.
hello kavita

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
Reply With Quote

#3 Old Re: how to display the name of incoming call? - 2009-02-02, 18:24

Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
bogdan.galiceanu's Avatar
bogdan.galiceanu
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 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
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

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