Over a million developers have joined DZone.

Switch Application To Foreground In Pys60

·
Taken from the 'appswitch' module here

import appswitch
print appswitch.switch_to_fg(u"Menu")

Updated (19 Oct 05)
==================
Now it can
- listing running applications
- switching them to foreground/background
- closing/killing apps

# listing
apps = appswitch.application_list(True) # true = include all
                                       # false = no hidden apps 
print apps

# to background and closing
print appswitch.switch_to_bg(u"TODO")
print appswitch.end_app(u"TODO")

Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}