Search This Blog

Tuesday, 18 July 2023

Best Practices and Patterns for Mobile Application Development

0 comments

Best practices are proven design and programming techniques used to build J2ME systems.  

Patterns are routines that solve common programming problems that occur in such systems. 

Professional developers use best practices and patterns to avoid making common mistakes when designing and building a J2ME application. 

 The following are some of the design patterns to follow for the development of Mobile Application Development:

  1. Keep Applications Simple 
  2. Keep Applications Small 
  3. Limit the Use of Memory 
  4. Off-Load Computations to the Server 
  5. Manage Your Application’s Use of a Network Connection
  6. Simplify the User Interface
  7. Use Local Variables 
  8. Don’t Concatenate Strings 
  9. Avoid Synchronization 

Keep Applications Simple:

  • Design an application by dividing it into objects that have associated data and methods.  
Here is an example: An order form is an object that has an order number, customer number, product number, and related data
  • Design a J2ME application by dividing the application into pieces.  
For example, a common division of a J2ME application is a menu option.   Each menu option is its own MIDlet. Menu option MIDlets are packaged in the same MIDlet suite along with other MIDlets related to the application.

  • Limit your design to minimum functionality required to meet user expectations. 

Place each functional component in its own MIDlet where possible, and package the application’s MIDlets in the same MIDlet suite. This enables the device’s application manager to manage MIDlets and the resources used by MIDlets. 

Leave a Reply