Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

calling one j2me application from another

 
Vijesh Vijayanath
Greenhorn
Posts: 26
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ransika deSilva
Ranch Hand
Posts: 524
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Eduardo Marques
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Bill Denniston
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic