• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MIDlet Suites - sharing code

 
Reinhardt Christiansen
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?
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic