views:

331

answers:

2

Hi all,

Anyone knows how to trigger a Symbian C++ application using any J2ME API call? I have a J2ME application that needs a customized photo taking application in Symbian C++. The reason for separating into two applications is because J2ME has a limit in heap size and the J2ME needs to know the path of photo after taking it.

Thanks a lot for your help.

Regards, Kenny

A: 

I don't think there is an API for doing that. One thing you could try is to have your two applications communicate over a socket interface. For example the Symbian application could set up a socket server at localhost and the J2ME application would connect to it. I am not sure that this is possible in a phone's environment however. It could also have other implications as well, such as having to sign your applications.

kgiannakakis
Hi Kgiannakakis, your idea is great. But was wondering whether we can run the symbian app in background. If there are two J2ME applications running at the same time, does it share the same heap size? I thought of calling external J2ME application from another J2ME application. Tried many ways but seems not able to trigger it to run.Thanks.
kennykee
J2me apps on Symbian S60 does not share heap, unless if they are in the same midlet suite. On the other hand one of the apps may be closed down if the system runs out of memory. JSR-211 is a good way to communicate between midlets.
Ola
+1  A: 

Take a look at APIBridge on Forum Nokia: http://www.forum.nokia.com/info/sw.nokia.com/id/d697a64f-ddae-4937-8151-be157b542d26/ApiBridge.html

Designed specifically for MIDP apps to access services provided in the Symbian C++ environment.

KevinD
Great, this is what I looking for. Thanks a lot KevinD and all of you!
kennykee