wood burning stoves*
The moose likes Java Micro Edition and the fly likes calling one j2me application from another Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "calling one j2me application from another" Watch "calling one j2me application from another" New topic
Author

calling one j2me application from another

Vijesh Vijayanath
Greenhorn

Joined: May 13, 2006
Posts: 26

hai all....
there are two different j2me applications(.jar files). I am in need of calling one application(.jar) from another.
What can i do for that in code?

thanks in adance
vijesh


Thanks,
Vijesh Vijayanath,
Solution Architect - Mobile applications
Ransika deSilva
Ranch Hand

Joined: Feb 18, 2003
Posts: 524
Hi,
CLDC supports 2 types of security mechanisms, Low level security and application level security. The application security makes the Midlet suite to run inside a Sandbox model. Hence a midlet suite can't access any other midlet suite. So your requirement can't be facilitated.

Regards


SCJP 1.4, SCMAD 1.0<br />SCWCD, SCBCD (in progress)
Eduardo Marques
Ranch Hand

Joined: Feb 19, 2005
Posts: 231
You can try using Push Registry alarms, if the device supports it.
This basically allows scheduling in time the execution of another MIDlet in the *same* MIDlet suite ie implying they are part of the same jar.
[ October 12, 2007: Message edited by: Eduardo Marques ]

Eduardo Marques
Get ready for your SCMAD certification at J2MECertificate.com - See what all the buzz is about ...
Bill Denniston
Greenhorn

Joined: Feb 18, 2006
Posts: 5
Hi:

If a Midlet from one .jar cannot instantiate for execution a Midlet in another .jar on the same device, how does a new Midlet application get installed on a device by download, etc. when it didn't come in the initial .jar on the device? It would seem to maintain the single .jar restriction that a device must be able to add a Midlet (and all its supporting classes and resources) to the single .jar, or delete them, and update the .jar manifest accordingly. That sounds like a lot of overhead for what appears to be a common device behavior. What classes and methods in the CLDC MIDP support this manipulation?

I would appreciate an explanation of a good approach to management of dynamic content under these conditions. What specific capabilities, features, classes, and/or methods must be implemented in the device profile to accommodate dynamic applications and content?

Thanks.

Bill Denniston
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: calling one j2me application from another