Start PyS60 Tutorials PyS60 Talks Applications Buzz Us Blog

 

Notification, Menus and Forms. Canvas, Content Handler and Queries. Set application title, tabs and set application body. Application screen size and Application Orientation. Text to speech, Playing and Recording sounds and setting volume. Taking a Photo, Recording Video and Using Viewfinder. Accessing Contacts and Adding - Deleting Contact entries. Using the e32 Module. Drawing, Opening and Editing an Image. Checking the Inbox, Reading SMS, Deleting SMS and Waiting for a SMS. Setting Logs, Retrieving Last missed calls, Retrieving Last SMS. Sending SMS, MMS, Email. Battery and Signal, Free Ram and Free Space, IMEI and firmware, phones, display, etc. Making a call, Hanging up calls, Waiting for a call. Displaying Text and showing an Image on a Window. Avoiding Python to be terminated by Red Key and Hiding the shell. Global Notifications and Queries.

 

 

      ADVERTISEMENT

 

 

 

 

Setting Logs:

 

#Copyright (c) 2008 Pankaj Nathani

#All the numbers that have been called and the duration of each call

import logs


c=logs.calls(mode='out')
for i in range(len(c)):
    print unicode(c[i]["number"])+" - "+unicode(c[i]["duration"]) #Where duration is displayed as seconds

 

 

Retrieving Last missed calls:

 

#Copyright (c) 2008 Pankaj Nathani

#Last missed call

import logs, time


m=logs.calls(mode='missed')[0]

print "Last missed call:"
print m["name"]
print m["number"]
print time.strftime("%d.%m.%Y %H:%M:%S", time.localtime(m["time"]))

 

 

Retrieving Last SMS:

 

#Copyright (c) 2008 Pankaj Nathani

#Last received SMS

import logs


s=logs.sms(mode='in')[0]
print "Last SMS received from:"
print s["name"]
print s["number"]

 

 

       Copyright © Croozeus.com All rights reserved.                                                                                                                        Webdesign: Jackson Productions