• 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:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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
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!