Distributing Functionality over Several Small MIDlets

Another way to save memory is to distribute the functionality of an application to two or more smaller applications in the same MIDlet suite. This approach seems especially feasible if the application consists of mostly independent building blocks, which only share their persistent data. An example could be any loosely connected client application, mainly operating on a local database, but synchronizing data with a server from time to time. Instead of integrating the synchronization in the main application, it can be moved to a separate application. Thus, the size of the main application can probably be reduced significantly. Other parts of the application, such as configuration dialogs, can ...

Get Java™ 2 Micro Edition Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.