BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 05-05-2007, 04:22 PM   #1 (permalink)
New Member
 
Join Date: Apr 2007
Model: 8700
PIN: N/A
Carrier: dont know
Posts: 11
Post Thanks: 0
Thanked 0 Times in 0 Posts
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


Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Ziraki Memory Foam Cover for Chair Armrests Pillow - Office Desk Armrest Cushion
$12.99
Ziraki Memory Foam Cover for Chair Armrests Pillow - Office Desk Armrest Cushion pictureSIEMENS SIMATIC S7 Memory Card 512KB MMC 6ES7953-8LJ30-0AA0
$35.15
SIEMENS SIMATIC S7 Memory Card 512KB MMC 6ES7953-8LJ30-0AA0 pictureMemory Card Readers ACR38U-ND PocketMate II
$22.52
Memory Card Readers ACR38U-ND PocketMate II  pictureALLEN BRADLEY 1785-MS 8K RAM MEMORY MODULE (REPAIRED) *NEW IN BOX*
$38.0
ALLEN BRADLEY 1785-MS 8K RAM MEMORY MODULE (REPAIRED) *NEW IN BOX* picture(1 PC) RG82845G/SL6PR INTEL IC,MEMORY CONTROLLER,CMOS,BGA,478PIN
$10.95
(1 PC) RG82845G/SL6PR INTEL IC,MEMORY CONTROLLER,CMOS,BGA,478PIN picture






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