BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 02-19-2007, 05:41 PM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Jan 2007
Model: 8100
Carrier: Rogers
Posts: 22
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default getBitmapResource Question

Please Login to Remove!

Hi,

My application uses images for several screens. I have folders for images as so:

Screen1->img->pic1.gif
Screen2->img->pic1.gif

When I call for pic1.gif with getBitmapResource(), it is confusing between the picture in the different folders. How do I specify the directory? I tried "Screen1/img/pic1.gif" and it seemed not to work.

Any ideas?

Dallan
Offline  
Old 02-19-2007, 09:26 PM   #2 (permalink)
Knows Where the Search Button Is
 
Join Date: Jan 2007
Model: 8100
Carrier: Rogers
Posts: 22
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

It works if you put all the pictures in one parent folder, i called it 'img'. To access a gif in 'folder1' within 'img' folder, I called getBitmapResource("img/Folder1/pic.gif");

This is perhaps the next best thing than having pictures in separate folders.

Dallan
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

Accupro AK-RS-232IS-120 Instant Start Electronic Ballast T8 120V
$19.99
Accupro AK-RS-232IS-120 Instant Start Electronic Ballast T8 120V   picture1PC UNIVERSAL 51-792-P 2, 3 OR 4 LAMP BALLAST
$9.95
1PC UNIVERSAL 51-792-P 2, 3 OR 4 LAMP BALLAST picturePhilips Advance Optanium IOP2P59SC 2 bulb ballast NEW LOT of 2 ballasts.
$9.98
Philips Advance Optanium IOP2P59SC 2 bulb ballast NEW LOT of 2 ballasts. picture 2-ACCUPRO AA-332IP-UNV T8 Instant Start Electronic Ballasts Input 120~227 Volts
$36.99
 2-ACCUPRO AA-332IP-UNV T8 Instant Start Electronic Ballasts Input 120~227 Volts pictureLOT OF (4) SENSORSWITCH CM-ALC AMBIENT LIGHT SENSOR FOR DIMMING BALLASTS
$49.95
LOT OF (4) SENSORSWITCH  CM-ALC AMBIENT LIGHT SENSOR FOR DIMMING BALLASTS picture






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