Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 04:26, 15 April 2008.

How to sort contacts

From Forum Nokia Wiki

This is a simple code snippet by which one can sort the contacts.

db = contacts.open()
names = []
numbers = []
for i in db:
  names.append(db[i].title)
  num = db[i].find('mobile_number')
  if num:
    numbers.append(num[0].value) # first mobile
  else:
    numbers.append(None)
 
names.sort()  #Sorts the list of names alphabetically
i = appuifw.selection_list(names)
print 'Number =', numbers[i]
 
<code python>
Related Discussions
Thread Thread Starter Forum Replies Last Post
7650: Possible memoryleak in built-in Contacts-application? mmalo General Symbian C++ 1 2002-07-30 10:52
Nokia N73's firmware for SyncML has big error,Thanks! lijinglailenny OMA DM/DS/CP 2 2007-07-18 04:29
6600 characters too small in sms messaging eric75007 General Discussion 2 2004-01-16 12:42
phonebook/Contacts utility in MIDP SDK for series60 7650 yashodhan Mobile Java General 2 2003-05-21 13:33
SIM Phone book access hananbercu Mobile Java General 5 2008-03-04 07:21
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZpythonQ
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX