Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

make a phone call (See related posts)

py_s60 1.1.3 provide a module to make call
   1  
   2  import telephone
   3  telephone.dial('017337330') # so easy

You can hang up by... guess it...
   1  telephone.hang_up()

You can combine this with the contacts module to search and dial
   1  
   2  import contacts, telephone
   3  name = 'korakot'
   4  cont = contacts.open().find(name)[0]
   5  number = cont.find('mobile_number')[0].value
   6  telephone.dial(number)

You need to create an account or log in to post comments to this site.


Click here to browse all 5556 code snippets

Related Posts