Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 9    Views: 58

Silvia SuperStar
Android Fan
Profile
Posts: 54
Reg: Feb 06, 2014
Ibiza
540
02/17/14 01:35 PM (11 years ago)

Not displaying local images?

Hi all, I am very happy with this tool and i have created my first App. That was a simple App with a menu buttons as home screen and each button linked to one custon HTML/Text screen. Now i am creating another two apps, very similar apps, but there is something strange. The first App is working fine because i used urls for the images, but on this new apps i want local images but the menu buttons and splash are not displaying images. http://s28.postimg.org/e8ox6c4e5/BTmath.jpg Info: - I have the images in my assets/BT_Docs (jpg) - I have uploaded the images (splash, background and buttons) to the "files" section of BT.com panel. - I have configured the menu buttons options. Any idea? Kisses to all!
 
EdReyes
Lost but trying
Profile
Posts: 574
Reg: Oct 21, 2013
location unknow...
17,640
like
02/17/14 01:56 PM (11 years ago)
after you downloaded the 3.0zip file and before you compiled it in xcode did you transfer the images to your xcode folder from the zip? If the images didn't get compiled, you may have to manually transfer them from where ever they are on your computer to your xcode folder. I had the same issue starting out, I'd upload to the files section, then when I compiled and ran the simulator it didnt find the images.
 
Silvia SuperStar
Android Fan
Profile
Posts: 54
Reg: Feb 06, 2014
Ibiza
540
like
02/17/14 02:00 PM (11 years ago)
Hi Ed, As i said "I have the images in my assets/BT_Docs (jpg)". Of course after downloading and after testing the apk on emulator/device. Thanks anyway!
 
EdReyes
Lost but trying
Profile
Posts: 574
Reg: Oct 21, 2013
location unknow...
17,640
like
02/17/14 02:02 PM (11 years ago)
my bad, i thought this was ios, but the screenshot is android correct. I've not worked on android yet.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
02/17/14 02:40 PM (11 years ago)
Hi Silvia, For Android, images that are backgrounds, icons, etc, need to go into the res > drawable folder. Make sure that you use the a_z0_9 naming convention for Android, which means no caps, spaces or special characters. Also keep in mind that putting stuff in the BT File manager has no effect on your project, unless you choose to link to a URL of that media. It's simply a repository to keep stuff organized in, but the images don't magically go where they need to. The BT_Docs folder should have images that are associated with any HTML files you might have. Hope this helps! Mark
 
Silvia SuperStar
Android Fan
Profile
Posts: 54
Reg: Feb 06, 2014
Ibiza
540
like
02/17/14 03:34 PM (11 years ago)
Ouuuu yeeahhh! Thanks Mark, it's working now!
 
Silvia SuperStar
Android Fan
Profile
Posts: 54
Reg: Feb 06, 2014
Ibiza
540
like
02/17/14 03:45 PM (11 years ago)
Oh Oh, Worked with splash and background but when i add the images for the menu buttons to the drawable folder an error appears. On the file R.java. The images are jpg files (200x200 for large devices and 60x60 for small devices) and the names are very simple, like 1b.jpg Any idea?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/17/14 03:48 PM (11 years ago)
If you get 'errors' on images, it's probably a 'filename' issue. Don't start them off with a number.. Use a lower case letter. Cheers! -- Smug
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
02/17/14 03:50 PM (11 years ago)
Good advice from Smug. And after you add new files to the res > drawable folder, make sure you Refresh your project in Eclipse to pick them up. Also...get used to looking at the LogCat output...it'll tell you often exactly what's missing or wrong (unless it's a compile error, and then you'll see it in the Problems tab). Mark
 
Silvia SuperStar
Android Fan
Profile
Posts: 54
Reg: Feb 06, 2014
Ibiza
540
like
02/17/14 03:57 PM (11 years ago)
Changed names from 1b.jpg to b1b.jpg and working fine. Crazy Android!! Thanks Smug and company!
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.