Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Running system applications from C++

1 replies · 2,156 views · Started 10 April 2003

Hi,

I want to run some of the system applications (e.g. Viewer, Video etc) from a C++ library on the P800. Is this possible?

The behaviour I want to achieve is as follows:

- Java class passes a file name (e.g. jpeg filename) to C++ library via JNI
- C++ library loads appropriate application (in this case, the ImageApp) supplying the filename as specified from Java

I've tried it from Java without JNI, using the following call:

Runtime.exec("Z:\\System\\Programs\\AppRun.exe Z:\\System\\Apps\\ImageApp\\ImageApp.app C:\\documents\\Media files\\image\\unfiled\\Purple.jpg"😉;

This launches the ImageApp application, but doesn't display the specified jpg file. Can I do this with C++?

thanks,
Derek