stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
02/04/13 09:13 PM (12 years ago)

images in BT_DOCS and Drawable

Are the same images allowed to be in both the BT_DOCS folder and in the Drawable folder? Steve
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
02/04/13 09:21 PM (12 years ago)
I believe that they need to go in the BT_DOCS folder if they were linked in the source code that way. -Shane
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
02/04/13 09:44 PM (12 years ago)
Not quite sure what you mean. I use images as icons for rows ( I have the menu with images plugin), and images for buttons on the home screen which is a menu with buttons screen. There is also a few background images and images which are referenced in html docs in some screens. My understanding is the icons for rows and images for buttons should be in the drawable folder. Background images I'm not to sure of where they should be and I'm pretty sure the images reference in html docs should be in the DOCS folder along with the html docs themselves. Is this correct? And would it cause problems if some images were duplicated in both folders? Steve
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/04/13 09:46 PM (12 years ago)
Yeah, general convention goes that if they're called from within the BT plugin, they should be in the /res/drawable and similar directories... But if for instance, you're putting an HTML document into a Screen, that HTML document should be in BT_Docs. That HTML 'may' be calling for images and other resources. if those resources are coded like <img src="icon.png" /> then that icon.png file should also be in the BT_Docs. "Within BT = res/drawable" "Outside BT = "BT_SomewhereElse" Pretty much echoing Outbreak, but in a blathering much longer winded style I prefer. ;) Cheers! -- Smug Oh, and I can't remember if it's Android or iOS but one or the other doesn't care for subdirectories too much. So on both platforms, as ugly as it seems, I dump them all out in the same directory.
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
02/04/13 09:51 PM (12 years ago)
Smug, But does it cause any problems if I have duplicates in Docs and Drawable? I only ask because I have some I haven't gotten rid of and am having crazy problems described in other posts and am wondering if having the same images in both places might be the culprit. Steve
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/04/13 10:02 PM (12 years ago)
Nah. Having 'image.png' and so on in both places wouldn't matter; with the exception of it makes your binary a bit bigger, but that's about it. If it calls for it, and it's there, the system is happy. If it calls for it and it's NOT there, then I can see a few errors or warnings coming about. What other errors do you experience? I'm not much for Android/iOS troubleshooting, but up to now, I've never actually had a 'code' problem, it's always been a 'Smug' problem... it just takes a while for me to find them sometimes... If I've had the same problems, I'm happy to share whatever it takes to fix it... Cheers! -- Smug
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
02/05/13 05:21 AM (12 years ago)
Duplicate images will not be causing the errors, as the guys explain above. I have menu buttons that go into HTML docs where the menu button is also placed as the header in the doc. One .png lives in BT docs with the HTML, the other in res/drawable. No issues.
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
02/05/13 06:22 AM (12 years ago)
Smug, Thanks for the offer. Go down about 15 places down from this thread called "Something New and Crazy". It's certainly driving me crazy. Steve
 

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.