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

 

 

 

 

Battery and Signal:

 

#Copyright (c) 2008 Pankaj Nathani

#Battery and signal

import sysinfo


print "Battery level: "+unicode(sysinfo.battery())

print "Signal strength: "+unicode(sysinfo.signal_bars())

#Both values are between 0 and 7

 

 

Free RAM and Free space:

 

#Copyright (c) 2008 Pankaj Nathani

#Free RAM and free space

import sysinfo


print sysinfo.free_ram()

print sysinfo.free_drivespace()['C:'] #Or E: for memory card

 

 

IMEI and firmware:

 

#Copyright (c) 2008 Pankaj Nathani

#IMEI and firmware version

import sysinfo


print "IMEI:"
print sysinfo.imei()
print ""

print "Firmware version:"
print sysinfo.sw_version()

 

 

The size of the phone's display in pixels:

 

#Copyright (c) 2008 Pankaj Nathani

#The size of the phone's display in pixels

import sysinfo


print "The display is "+str(sysinfo.display_pixels()[0])+"X"+str(sysinfo.display_pixels()[1])

 

 

Seeing which profile is currently active:

 

#Copyright (c) 2008 Pankaj Nathani

#Seeing which profile is currently active

import sysinfo


print sysinfo.active_profile()

 

 

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