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

This page was last modified 22:22, 12 October 2007.

How to choose a phone number

From Forum Nokia Wiki

A minimal example to let you choose from you phonebook.

import contacts, appuifw
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)
 
i = appuifw.selection_list(names)
print 'number =', numbers[i]
Related Discussions
Thread Thread Starter Forum Replies Last Post
Window to choose the language of the app during the install asmobease General Symbian C++ 8 2007-06-01 09:41
How to get phone events? vikas3a General Symbian C++ 3 2006-09-26 11:20
Distributing J2ME applications mandeepdhill Mobile Java General 5 2007-10-16 12:59
Questions about N95 8GB nick_santa83 Python 12 2008-02-05 04:24
How to get the self phone number nasir_perwez Python 1 2007-04-23 16:13
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZpythonQ
     qfnZtopicQUqfnTopicZseriesE5f60Q
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX