×
Namespaces

Variants
Actions

Archived:How to open another application from PySymbian

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngAquivado: Este artigo foi arquivado, pois o conteúdo não é mais considerado relevante para se criar soluções comerciais atuais. Se você achar que este artigo ainda é importante, inclua o template {{ForArchiveReview|escreva a sua justificativa}}.

All PySymbian articles have been archived. PySymbian is no longer maintained by Nokia and is not guaranteed to work on more recent Symbian devices. It is not possible to submit apps to Nokia Store.

Article Metadata
Article
Created: cyke64 (15 Mar 2007)
Last edited: hamishwillee (31 May 2013)

To launch internal camera application you can use this snippet.

import e32
 
# code is valid only for S60 2nd Edition
e32.start_exe('z:\\system\\programs\\apprun.exe','z:\\system\\apps\\camcorder\\camcorder.app')
 
# For S60 3rd edition
e32.start_exe('z:\\system\\apps\\cammojave.exe','',1)

how to get a list of apps which can be started by Python

The code snippet below will let one know about the fact that how many other applications he can start with the help of Python

import os, e32, appuifw
 
 
#Make an emptry list, which will be populated with the names of the exe
l=[]
 
for f in os.listdir("Z:\\resource\\apps"):
if(f.endswith(".mif") and not f.endswith("_aif.mif")):
l.append(unicode(f[0:len(f)-4]))
 
#Show a list with the found exe
i=appuifw.selection_list(l)
 
#Start the selected app
e32.start_exe("z:\\system\\apps\\"+l[i]+".exe",'',1)

Related Links

An approximate way of finding available apps

This page was last modified on 31 May 2013, at 04:09.
38 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×