You Are Here:

Community: Developer Discussion Boards

#1 Old Problems with inbox.address and mobile number on the N95 - 2009-01-25, 21:56

Join Date: Nov 2008
Posts: 3
starbuck3733t
Offline
Registered User
I'm pretty sure this has to do with the behavior of showing LASTNAME FIRSTNAME on the SMS Inbox of the N95, but I'm not sure what, if anything, I can do to get around it.

I need to access the actual numeric # of the sender of a given txt message id (1058522 in this case)

Code:
>>> import inbox, contacts
>>> db = contacts.open()
>>> box = inbox.inbox()
>>> box.address(1058522)
u'- Nadzeya (ICE) Erin'
>>> db.find(s)
[]
You see, it returns an empty array, even though this person is in my address book... and I know why. They're in my address book as FIRSTNAME: "Erin" LASTNAME: "- Nadzeya (ICE)"

So her contact should actually read u'Erin - Nadzeya (ICE)' instead of u'- Nadzeya (ICE) Erin'.

Any ideas? Did I miss a firmware that fixes this bug on the N95?

The end goal here is to take the sender of an SMS, look up their contact, if contact has personal_ringtone defined play the first 3 seconds of it instead of teh generic SMS tone.
Reply With Quote

#2 Old Re: Problems with inbox.address and mobile number on the N95 - 2009-01-26, 12:33

Join Date: Mar 2003
Posts: 937
Location: Espoo, Finland
JOM's Avatar
JOM
Offline
Forum Nokia Champion
Hi,

Read AGAIN the manual. You will discover that Contacts database saves Firstname and Lastname as separate items inside database. That's why your search for combined "Lastname Firstname" fails.

The order is last-first, because that's the way the default SMS implementation works. It's not a defect, it's a feature. You didn't miss firmware upgrade, you missed something else: 7.1.3 Contact Object.

Reader,

--jouni
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
some problems about deloying a mobile web application ctlqt12 General Browsing 2 2007-05-03 06:38
changing sender Number to alphanumeric for a mobile originated Message vvraju General Messaging 1 2006-04-16 21:08
wap push and mobile number toniti General Browsing 2 2003-07-15 04:39
dial up number transfered to mobile 6210 ( pause sign ) mobutu4 PC Suite API and PC Connectivity SDK 0 2002-08-06 04:06
Self mobile number from SIM Card abhishekmishra General Symbian C++ 0 2002-05-28 13:56

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