• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

MIDlet Suites - sharing code  RSS feed

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The midlets I am writing often have routines that can be shared by multiple MIDlets. For example, I have a class of static methods that are used to generate different kinds of Alerts.

I am keeping these shared routines in a separate MIDlet, within its own own project, called 'Common', in my IDE (Eclipse). Within Eclipse, I can simply tell my current project to use the code within the Common project. This works fine for testing within the emulator.

However, I am confused about if I can do this on my PDA too. I've seen conflicting information in different threads on different newsgroups. I'd like to clarify that now.

Can one MIDlet suite access a MIDlet in a different MIDlet suite when both are on the PDA, as opposed to being in a development environment? Is it okay that both are in their own separate JARs (actually, they are going to be in .PRC files since I have to convert them to .PRCs to install them on my Palm Tungsten E)? Or can a MIDlet only talk to other MIDlets in the same suite?
 
ranger
Sheriff
Posts: 17314
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Can one MIDlet suite access a MIDlet in a different MIDlet suite when both are on the PDA, as opposed to being in a development environment?



No. Only Midlets within the same jar file can have shared code.

Mark
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!