Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Cannot use MIDP UI APIs and BlackBerry UI APIs together

by BlackBerry Development Advisor ‎02-16-2010 09:22 AM - edited ‎09-28-2010 12:52 PM

Summary

 

This article applies to the following:

  • BlackBerry® Java™ Development Environment (JDE)
  • BlackBerry wireless devices based on Java

Description

 

When you design an application, you can use either a Mobile Information Device Profile (MIDP) user interface (UI) application programming interface (API) or a BlackBerry UI API. However, a MIDP UI API (javax.microedition.lcdui.*) and a BlackBerry UI API (net.rim.device.api.ui.*, net.rim.device.api.ui.container.*, net.rim.device.api.ui.component.*) cannot be used together.

 

While designing an application, you must decide whether you want to use the MIDP or BlackBerry UI structures. The BlackBerry UI APIs are more extensive and provide rich field and screen management capabilities. The MIDP UI APIs are generic and allow applications to run on all MIDP devices.

 

For more information on the BlackBerry UI framework, refer to the "Understanding the BlackBerry UI" section of the BlackBerry Java Development Environment: Developer Guide.

Contributors