HeyShay
Aspiring developer
Profile
Posts: 24
Reg: Oct 15, 2012
Seattle
1,690
10/17/12 12:45 PM (13 years ago)

File organization suggestions

Okay here's one I tried to search for but couldn't rightly find using the advanced search. So I am turning my attention to HTML docs as a solution for most of the pages in my app. I code in Coda, and I am used to having an images subfolder for my images, and putting stylesheets into a styles folder. Thus my HTML references images "images/imagename.jpg", and the stylesheet is also called from a subfolder. From what I have read, Xcode and Eclipse organize their files differently. For instance, XCode automatically looks into BT_Images for images, and BT_Docs for stylesheets. So I need to remove any images/ or style/ subfolder references from my code in order for it to work, yes? How does Eclipse handle these same assets? So then the question is, when I am over in Coda building my pages, how should I be best organizing my files? I don't want one giant folder with every asset in it--what a pain! But if XCode (and maybe Eclipse) ignore any subfolder references, isn't that what I have to do to make my Coda code applicable in the dev/emulator code? So how do you organize your files in my shoes?
 
HeyShay
Aspiring developer
Profile
Posts: 24
Reg: Oct 15, 2012
Seattle
1,690
like
10/17/12 12:47 PM (13 years ago)
Oh and while I am at it, while I am working in BuzzTouch, where should I put my css files so that they get filed properly when I compile it for XCode oe Eclipse? Or do I have to import those files manually?
 
HeyShay
Aspiring developer
Profile
Posts: 24
Reg: Oct 15, 2012
Seattle
1,690
like
10/17/12 01:00 PM (13 years ago)
And I just noticed that both my Docs and Images folders are empty, despite referencing several images and two HTML docs which I uploaded to Buzztouch. I assumed that these assets could come back in the package when I downloaded the XCode data from Buzztouch, but it didn't. Am I missing something?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
10/17/12 01:05 PM (13 years ago)
Hello HeyShay, Let me hit these with bullets: * Media uploaded to your File Manager does not get included in your source code package download. It's just a way to keep track of what you want to use for your project. You do have the option to zip it all up and download as a separate package. And, you can use the URL to those items on the buzztouch service instead of including them with your app. * Android images go in res > drawable folder. All images and documents in Android should follow the 0-9a-z naming convention, meaning no caps, spaces, or special characters. * For Xcode, you could create subfolders in BT_Images, but you'll still need to reference them directly as you noted. If the image is anywhere in BT_Images, Xcode will find them. For CSS and HTML docs, they can all go in BT_Docs. Mark
 
HeyShay
Aspiring developer
Profile
Posts: 24
Reg: Oct 15, 2012
Seattle
1,690
like
10/17/12 01:39 PM (13 years ago)
Always on the ball there, GoNorthWest! :) ~ Got it on the media. Can drag over for now. ~ So I cover my bases: for the Android file naming conventions, does that apply to images only, or to both docs and images? ~ Finally, if I simply reference "images/imagename.jpg" it should find it? Because right now it's not. I have placed a subfolder "images" in the BT_Images folder, and the image in my HTML doc is not showing/broken in the emulator. Strangely, one of my HTML files seems to be working otherwise (even though the image isn't showing), but my OTHER HTML file is showing blank and I can't figure out why. They are identical (I copied one from the other, then just changed the text), so I can't see why it wouldn't work. It's not saying the file is missing, it is pulling up the file, but showing just a blank screen. Gotta dig into that one a little more. Thanks for talking me through these tender first steps. I like to dig in and play right away to get the feel for the UI and the organization of a system, so I appreciate the kind attention you are giving as I feel my way around.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
10/17/12 02:13 PM (13 years ago)
Howdy! * I believe the naming convention applies to all files. If you want to use buzztouch to design once for both platforms, I'd use that convention to start, just to be safe. Then you're good for both iOS and Android. * It won't find it unless you remove the images folder part of the path. You can, however, create an images folder within BT_Images, and it'll find it even though you only reference the image itself in your HTML doc. * For your current problem, keep an eye on the debug console. There are usually clues there! Glad to see you're digging right in...that's the best way to learn! Mark
 
HeyShay
Aspiring developer
Profile
Posts: 24
Reg: Oct 15, 2012
Seattle
1,690
like
10/17/12 02:17 PM (13 years ago)
Thanks. I misunderstood what you meant about the images filepath. So I do have to remove that from the HTML. Got it. Bummer! Surely I will be seeing you around the forums very soon. :)
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
10/17/12 02:20 PM (13 years ago)
I'll be here!
 

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.