You Are Here:

Community: Developer Discussion Boards

#1 Old Question how to access contacts DB using S60 2nd ed - 2008-10-25, 06:27

Join Date: Oct 2008
Posts: 12
Location: Philippines
Send a message via Yahoo to arren_tuazon
arren_tuazon
Offline
Registered User
i want to loop through the contacts DB and send an sms to each contact...

help
Last edited by arren_tuazon : 2008-10-26 at 09:52.
Reply With Quote

#2 Old Re: how to access contacts DB using S60 2nd ed - 2008-10-25, 08:25

Join Date: Sep 2007
Posts: 395
Location: Bhavnagar
Send a message via Yahoo to james1980
james1980's Avatar
james1980
Offline
Forum Nokia Champion
Hi,
try this example on wikihttp://wiki.forum.nokia.com/index.ph..._sort_contacts. In place of sorting contact you can modify it to send msg. Hope it helps you.
Bye.


Jajal Mehul
Reply With Quote

#3 Old Re: how to access contacts DB using S60 2nd ed - 2008-10-25, 09:49

Join Date: Sep 2007
Posts: 395
Location: Bhavnagar
Send a message via Yahoo to james1980
james1980's Avatar
james1980
Offline
Forum Nokia Champion
Hi
Try the this code. Hope this will help you.
I had tried it in emulator and it print all the number in contacts.

Code:
import e32
import appuifw
import messaging

import contacts

def exit():
    lock.signal()

db = contacts.open()
numbers = []

for i in db:
  num = db[i].find('mobile_number')
  if num:
    numbers.append(num[0].value) # first mobile
  else:
    numbers.append(None)
for i in numbers:
    messaging.sms_send(i,u"hi you have a message  ")
    print i
lock=e32.Ao_lock()
appuifw.app.exit_key_handler=exit
lock.wait()
If required, you can add some delay in the loop.

Bye


Jajal Mehul
Reply With Quote

#4 Old Re: how to access contacts DB using S60 2nd ed - 2008-10-26, 09:51

Join Date: Oct 2008
Posts: 12
Location: Philippines
Send a message via Yahoo to arren_tuazon
arren_tuazon
Offline
Registered User
hi
thanks Jajal Mehul

arren
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
Newbie Q. about carbide.c++ v1.3 not having templates for S60 2nd FP2 tamdid General Symbian C++ 7 2008-05-29 18:41
Nokia 6101 Locked 2 TMobile Midlet can't access internet... Jason Glass Mobile Java Networking & Messaging & Security 45 2007-11-14 03:19
How to access Memory card on s60 2nd Ed FP3 Emulator?? desijatt Mobile Java Media (Graphics & Sounds) 2 2006-08-31 18:10
What is going on with Vibration on S60? amd_rikus Mobile Java General 3 2006-06-16 01:29
Hiding contacts from S60 Phonebook AndyMonaghan General Symbian C++ 1 2006-05-25 14:58

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 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d81449X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZpythonQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxpythonX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ