SO MANY IMAGE PROBLEMS. (I'm new to this so ...this is probably why)
So I replaced the appicon.png & Default.png with my own images. They are not appearing when the SDK is launched. Thats the first problem. Then I tried to make a background image for the first window. It won't load it because it says that it failed to connect. These are probably really simple questions but I am seriously new to this and writing code, so …yea, thats enough to get me pretty confused.
Anyway, Thanks!
2 Answers
-
Accepted Answer
For the default images, make sure that the images in the
Resources/iphone
andResources/android
directories are deleted - any platform-specific resources will be favored first, and will overwrite any other versions you might have inResources
.Also, if you haven't already, check out the Zero To App Training series - should be helpful if you're brand new to Titanium. If you're brand new to JavaScript, a great online resource is the Mozilla JavaScript guide.
-
which platform are you using? iphone or android?
for the icon to appear you have to choose it inside the project's edit tab in titanium developer
your backgroundImage problem seems to result from the system not being able to locate it, use a relative path to your image like this: 'images/mypic.png' instead '/images/mypic.png'. this seems to be working on both simulator and device for me