Community Questions & Answers
Linked Resources / path variables in Ti Studio
Hello, Is it possible to use the eclipse 'Linked Resources' option in Studio? So far I haven't been able to. If it is, how? :) If not, what are your solutions to use linked/shared libraries across projects? Thanks
Problems using javascript resources
Hey! I just wanna use a local html i had in resources folder that contains javascripts (.js are in the resources folder too) in a webView. but it seems not working with the javascripts... here is the code of the...
Android drawable icon button image
On the View: ~~~ <View> <Button class="folderBtn" /> ... ~~~ On the style: ~~~ ".folderBtn": { backgroundImage: Ti.Android.R.drawable.ic_menu_archive } ~~~ But this does not work, the button come with no image. If I use...
Reducing the size of Titanium based Android app.
Hi,in my application resource folder of just 1.1Mb.But my **.apk** file of 5.7Mb.And when I installed application on android phone its of 11.5Mb.Is there any way to reduce the size of android application.Thank you
How to store app resource content in 'Documents' folder
IOS: 6.1 Titanium: 3.0 Is it possible to have my iOS app store the content files (html, images, etc) in the IOS 'Documents' or the 'Private Documents' folder, vs. inside the xxx.app bundle? I see my database files automatically go to the 'Private...
Alloy Android and local resources in a WebView ...
I've got a big problem with loading local resources in a webview on android. It just shows nothing. I've tried every possible path to the resource already but none works. However, when I try to load something via http:// it does work. the resource is...
How to access Android's default.png Splash Image from density specific folders at runtime
Titanium Mobile 3.0 SDK Android 4.x Alloy 1.0 Hi, Is it possible to access the density specific version of the splash screen image at runtime? I have several splash images at different densities...
Titanium Alloy and Android Resources problem
Hi! I'm currently taking my first steps with Alloy, but I am experiencing several problems with the Android resources. I've got this folder structure: ~~~ app - assets -- android --- images ---- high ---- medium ---- low ~~~ And I reference images like...
Android Tablet Help
I'm having some issues getting my application to look correct on Android Tablets. The first issue is that compatibility mode is always on, even if i take the anyDensity tag out of the tiapp.xml. This is a big issue and i'm not exactly sure how to fix it...
Custom fonts on iOS device (1.8.0.1)
We are using a custom font that works fine in the simulator but does not get installed when running on a device. The font is referenced in the generated info.plist file but the otf doesn't get moved to the build resources. I tried copying the file to...
Why is the resources folder hidden in an alloy project?
I created a new alloy project and the resources folder is hidden. Is there a specific reason why it's hidden? I thought I might have to make some changes and setup controllers from there. Any info would be good.
Android resources, specific resolution support
Hey guys, I am developing an android app and i need specific resolution support. Does Titanium support resource folder name like "res-sw600dp" or "res-w800dp" ? This doesn't work on my device/emulator. Thanks
Will files outside of the resource directory affect app size?
I would like to place files associated with my project such as photoshop files somewhere in the project directory. I do not want these files to affect my final application size however, which I imagine happens if you include it within the resources folder....
Using images in alloy as backgroundImage
Hi eveyone! i have started using alloy with the tss properties, controllers and everything else. I use some images as background images and are placed as follows: ~~~ iphone\ images \ global\ background.png background@2x.png android\ ...
Android splashscreen fails when platform folder is used
Hi, I've created a mobile application for Android and iPhone. For the project I've created splashscreens and placed them in the different resource folders. So for iphone I placed them in Resources/iphone/images with the name "Default.png" and...
How to download a xml-file from a folder Resources
Hi! I'm in the Resources/xml are xml-files, how to implement their boot from that folder, not the Web? xhr.open('GET','/xml/thisXML.xml'); Thanks in advance!
Resources Directory in IOS6?
Hey developers, I am checking if a file exists in my resources directory, if it does exist I include it. In my simulator this always worked fine and it still does. But since a few days (ios6) it doesn't work on my iPad anymore. When I alert...
Files not recognized
I add resources/assets to the resources folder or images folder and I get not found errors. I run a clean after adding new files and then build. Still I get not found errors. One file I placed in the folder was added and displayed without issue, but every...
How could a module get the images in Resources/images?--android
I develop an android module and need it to get the image in the Directory:Resource/images,but it could not get the image until now... here is the code to use the method which get images in the module: `WT.sendImage('images/appicon.png');` and this is the...
Why loads the backgroundImage of createButton 3 times?
Hi, If I got a backgroundImage for a button, it loads 3 times. I think that is because, if you use a backgroundImage, a button also need an image for backgroundSelectedImage and backgroundDisabledImage. Well, that makes some sense. But it also loads...
Cannot Start Titanium after a crash...
~~~ !SESSION 2012-09-19 14:27:52.457 ----------------------------------------------- eclipse.buildId=unknown java.version=1.6.0_35 java.vendor=Apple Inc. BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US Framework arguments: -keyring...
Solution for those with the "Android + Webview = Resource Images Not Showing" Problems
Hey guys, Thought I'd share this since I spent hours pulling my hair out (until 6am) and trawling through dozens of the same questions posted here over the last 2 years. I slept on it and came up with a solution today. As some of you will know, having...
where can i find those UI elements
I am trying to find the ios native phone UI elements, particulary the 'mute','speaker phone','face time', 'add contact' graphics icon. Does anybody know where i can find them? If not what is a good software i can use in order to trim it off an image?
Include custom resource directories
I have an app that I would like to "skin". For that purpose I'd like to have several resource directories holding a skins graphic assets. Dependent on a configuration I'd like be able to "switch" between the skins, so I can build the...
Android ImagePath with multiple density
1. Application type: mobile Titanium SDK: 2.0.1 (04/12/12 16:33 999c68a) 2. Platform & version: Android 4.0.1 3. Device: Google Nexus One last model 4. Host Operating System: OSX 10.7 5. Titanium Studio: build: 2.0.2.201205311912 Here is the...
Building different Apps from one project
I want to deploy different apps with a different app name and specific resource folders. In xcode you can do this with "targets". So you got one project and multiple project targets. In xcode you also get multiple .plist files. How can i...
Images missing on Android device build
Hi, I've been developing an application for both iPhone and Android. For the development, I've been building and testing the applications using the iPhone simulator and Android Emulator. Now I'm satisfied with the result I wanted to build the application...
Unzip from Resource folder with androzip module
I'm using androzip for android to unzip files. This works fine if my source lies in the application data directory, but it fails when the source is in the resource directory. Then I get the message "File not exist". The files do exist at the...
Reading text file in resources folder: file not found on Android emulator, but works in iOS simulator
Hi, i'm trying to read a text file (a csv like file) located in a subfolder of the Resources folder in my appcelerator folder (it is located on Resources/quizzes/quizzes.qpak and as said is a simple text file with some separators, like csv). I use the...
Delete file from Resources directory
How can I delete file that is somewhere in resources directory? Below you can see my folder structure: ~~~ var filePath = Ti.Filesystem.resourcesDirectory + Ti.Filesystem.separator + 'app' + Ti.Filesystem.separator + 'views' + Ti.Filesystem.separator +...
Cannot Install Database
I have a Sqlite database in my Resources folder (I moved it over in Finder). When the application builds the file is not copied over to the application (I checked in the Library/Application Support ... folder. Therefore I get an error saying that it is...
Share resources as symbolic links
I'm trying to share resources between two iOS projects (on v1.8) but when I copy the resources over as symbolic links, my build does not include the linked files. This...
Assets folder issue
hi, I wrote a module that creates a cameraview overlayed with an imageView to shoot the photo, my problem is that since i can't pass the image in the "res" folder i need to place it in "assets", in android it all works fine, but i...
Resource path android vs iphone
Hello, just to understand, i'm a bit confused, i've read from the documentation that all specific resources for both android and iphone should be put inside: resources/android/images/res-xxx and resources/iphone and then i need to use only the base name...
what means @2 in an image name
I don't understand what means when you have an image box.png and box@2.png. I understand that this is for different platforms to choose their file, but can you give me some more details?
Image Path
This is a crazy beginner question, I know, but it's shocking how little information is out there (or maybe my Google Fu is weak today). I'm just trying to create an `imageView` and I can see that the image is conventionally loaded relative to the...
Resources folder for Android and iPhone
Hello, I can't display image from Ressources/iPhone and Ressources/android. When I specify the path in my code, the image does not appear when I build the app. What do I do wrong? As you can see from the screenshot, I placed all the elements...
Please Setup your Profiles
Wanted to remind the new developers (and some of the older ones as well) to go and setup their [Developer Profiles](https://my.appcelerator.com/profile). I'd suggest that you setup at least one way for other devs to reach you off-forum. At minimum, enable...
Certain UI methods simply crash iphone simulator
I am working through an extremely basic app just to demonstrate to myself the capabilities of titanium. I can create basic windows, views, labels, and tabs and have the app run successfully, but as soon as I add any more complex object, via method, the...
Image resources for different devices and resolutions
Hello all I am trying to build an application that has as image resources a set of icons, numbered from 1 to ... say 10. I have different icons for different resolutions - that is three types of icons: mdpi (x1), hdpi (x1.5) and retina (x2). I want to...
backgroundImage not working!
Hello all It seems that in my case, the property "backgroundImage" is not working properly: ~~~ var mainWindow = Ti.UI.createWindow({ backgroundImage: "images/background.png" }); ~~~ The issue seems to be with the compilation,...
Appcelerator Logo (vector, preferred)
Anyone know where I can find a vector version of the Appcelerator logo? I'm putting together a couple proofs-of-concept and an accompanying presentation to (attempt, anyway) win over the IT directors to Titanium. I'd like to show the full HTML5 SVG and...
Titanium Resource Structrue for iPad in Titanium Studio project
I'm newbie in Titanium. I have a project (iPhone, iPad and android) created by Titanium Studio, my question is: Where should be located iPad resources in particular? in "Resources/iphone/ipad" ? or "Resources/iphone"?
jQuery .load PHP file increases memory usage
I have a desktop app that uses the jQuery's .load method every 10 seconds to refresh content from a php file. Every time it is called it uses more memory until the app either crashes or stops functioning. How can I clear resources/memory?
iOS and Android
Hi, I'm currently adapting my iOS app for Android. I am wondering if I should create a new copy of the app and just modify it, or put in a bunch of if Iphone statements. My question is do those if statements that check if it is iOS or Android stay in...
Platform-specific Resources broken?
Hi, using 1.5.0 I found that platform-specific resources does not work for me with iPhone. Lets say we have this code: ~~~ var tab1 = Titanium.UI.createTab({ icon:'KS_nav_views.png', title:'Tab 1', window:win1 }); ~~~ Following [this...
How to package the resources folder inside the binary / executable??
Sorry for being a bit of a noob here but I noticed once I'd packaged up my desktop app into a windows installer and installed it. It actually just pastes your resources folder into your installation directory along with all the html and javascript files......
Build Android App hangs at [INFO] Copying project resources..
Hello everyone! Two days ago, every time i try to Launch Android Apps it always hangs at “**[INFO] Copying project resources..**” That started to happen after i renamed the app.js and replaced it with other app.js file in same dir. And since that i...
Build Android app stops at '[INFO] Copying project resources..'
I'm having a problem with building Android app projects.<br> Titanium Developer stops building at 'Copying project resources..' and it doesn't go any further.<br>Everything was working fine before this problem suddenly occurred.<br> I...
Is this Q&A resource broken?
I was scrolling through, trying to find a post I was involved in yesterday, and discovered there's a huge gap and, possibly, missing entries when you use the paging feature below (clicking on the page numbers). Entries will go from being "asked"...
Showing 1-50 of 57 1 2