Using preprocessor directives in BlackBerry JDE plugin for eclipse?

Within the eclipse config file (%ECLIPSE_HOME%\configuration\config.ini) make sure the following line exists. osgi.framework.extensions=net.rim.eide.preprocessing.hook With the current BlackBerry plugin ( config line is added for you. I’m not sure about older versions of the plugin. Also, checkout this Stack Overflow question for more information on the BlackBerry preprocessor. Preprocessor directives supported by the RIM compiler

“Tunnel Failed” exception in BlackBerry Curve 8520

common problem and also answered many times DeviceInfo.isSimulator() then extension is “;deviceside=true” and BisConnection then extension is “;deviceside=false;ConnectionType=mds-public” and BesConnection then extension is “;deviceside=false” and WifiConnection then extension is “;interface=wifi” in this way specific extensions or available so this is not a good way to using extensions we have to classes 1)HttpConnectionFactory 2)HttpConnectionFactoryException just import … Read more

Image Button in BlackBerry

here you go, complete code: import net.rim.device.api.system.Bitmap; import net.rim.device.api.ui.Graphics; import net.rim.device.api.ui.component.ButtonField; /** * Button field with a bitmap as its label. */ public class BitmapButtonField extends ButtonField { private Bitmap bitmap; private Bitmap bitmapHighlight; private boolean highlighted = false; /** * Instantiates a new bitmap button field. * * @param bitmap the bitmap to use … Read more