Win a copy of Spring Boot in Practice this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

calling one j2me application from another

 
Greenhorn
Posts: 26
Android Java ME Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 524
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic