|   Home  |   Feedback  |   About Me |
 
 

Python for S60

 
 
 

Python syntax Lessons

PyS60 Tutorials Menu

  PyS60 Extensions Menu  
   

Appswitch Module

 Appswitch module is another very interesting and very useful module. Using Appswitch one can:

List all the applications installed.

Switch a particular application to foreground and background.

One can close or kill a particular application.

These can be downloaded from cyke64's googlepage.

Code Example:

import e32

import appswitch

apps = appswitch.application_list(True)      # true = include all
                                             # false = no hidden apps
print apps                                   # will print the list of all installed apps

# please start to-do before this test

print appswitch.switch_to_fg(u"TODO")        # switching the application to foreground
e32.ao_sleep(1)
print appswitch.switch_to_bg(u"TODO")        # switching the application to background
e32.ao_sleep(1)
print appswitch.end_app(u"TODO")             # closing the application  

       

 

 

 
 
 

 

 
   
 
Feedback  |   Contribute    |  About Me