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 probably be spun off as well.

Please note that you can split MIDlets only if all the applications are stored in the same suite; otherwise, they can't share their persistent data.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset