BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 05-05-2007, 04:22 PM   #1
hussulinux
New Member
 
Join Date: Apr 2007
Model: 8700
PIN: N/A
Carrier: dont know
Posts: 11
Default no image on BB cod after conversion

Please Login to Remove!

I wrote a small file in J2ME which displays an image.

I compiled the file and got a .JAD and .JAR
The image gets embedded in the .JAR

I run this anywhere on any j2me emulator, i can see the image.

But when i convert it to .cod using the utilities, on running it on the emulator i cant see the images.

The .cod file also has the image embedded.

I'm sure im doing the conversions etc. correctly and am able to run the application also but just I cannot see the images.

Any idea?


The J2ME code which I'm using to display the image is as follows:

imgDelivery = new ImageItem(null, get_imgsrcDelivery(), ImageItem.LAYOUT_DEFAULT, null);//GEN-BEGIN:MVDInitInit
imgDelivery.addCommand(get_cmdDelivery());
imgDelivery.setItemCommandListener(this);
imgDelivery.setDefaultCommand(get_cmdDelivery());
try {
imgsrcLogo = Image.createImage("/logo.JPG");
} catch (java.io.IOException exception) {
exception.printStackTrace();
}


Do i need any modifications to show the image on the blackberry?
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Nichicon Capacitor CE 85C NX 450V 8200uF  picture

Nichicon Capacitor CE 85C NX 450V 8200uF

$54.95



ABB Capacitor Unit 3HAC14551-3/05A picture

ABB Capacitor Unit 3HAC14551-3/05A

$399.95



Indramat AC Servo Capacitor TCM2.1-02-7 picture

Indramat AC Servo Capacitor TCM2.1-02-7

$99.95



ABB Capacitor Unit 3HAC14551-2/03B picture

ABB Capacitor Unit 3HAC14551-2/03B

$474.95



6.3V 10V 16V 25V 35V 50V 100V 400V SMD Aluminum Electrolytic Capacitor 1-1000 UF picture

6.3V 10V 16V 25V 35V 50V 100V 400V SMD Aluminum Electrolytic Capacitor 1-1000 UF

$155.59



CBB61 250V  Capacitor 2 wires 1/2/3/3.5/4/5/6/7/8/9/10/12/15/18/20/24/25/30 UF picture

CBB61 250V Capacitor 2 wires 1/2/3/3.5/4/5/6/7/8/9/10/12/15/18/20/24/25/30 UF

$129.95







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.