Community Questions & Answers
Titanium deletes the images while compiling.
Hi.. Titanium encounters a problem in adding images to default image folder in Resources. When I add new image to this folder, Titanium automatically deletes the image on compiling the app. Same problem is there when I tried to delete an image from the...
ImageView to E-mail Attachment Problem
Greetings, I'm a Titanium beginner currently working on an iPhone application using the latest SDK and the Alloy framework. Part of the app involves the user selecting a photo from their phone and sending it via e-mail as an attachment. However, I am...
Images in a Webview
I am having issues figuring out how to reference images from HTML in a WebView for iOS and Android using a standard syntax. This works in iOS app://Resources/HTML/images/Logo.gif This works in...
Where & How to use images & icons density-specific in android
 Hi, I've thow questions about images & icons. I've seen the Ti doc, but still I have doubts 1) Hi... I've placed the appicon.png under platform/android/res/drawable-<type> as the documentation: - 36 x 36...
android resolution specific folders with alloy
Hello everybody, I can't display images paced under resolution specific folders lik -hdpi, -xhdpi, -mdpi, -ldpi. Is it working for you? I would like to load images from "/images/<res-hdpi>/tabicons/default.png". I tried every possible...
Alloy and Android density-specific images
I am adapting an iPhone app to run on Android using the Alloy framework, and am encountering a problem with density-specific image folders when building. The result is that images within the density-specific folders (eg. app/assets/android/images/res-hdpi)...
images
hi all i have a images in image array i would like to list all those images same as like gallery view (like how images will be positioned in mobile gallery) pls help me..........
Image paths - leading period or not?
I've just been porting an iPhone app to android, and not one of the images would display, until I removed the leading period the previous developer had put before every image path. I've seen this in a few people's code, so am wondering what the leading...
Build Module (Androzip) / unizp image folder
I'm developing an android app with a local database and a lot of images. My image folder is around 150MB. Due this, i have to zip the images, and download it seperatly. To unzip the image folder, i need the androzip module, but i can't find a fully build...
Coverflow and Images with BorderRadius
I've got Coverflow working nicely. But I'd like to add rounded corners to the images in Coverflow. Is there anyway to do this?
How to Load multiple icons faster titanium appcelerator?
~~~ Application type: alloy Titanium SDK: 3.1.0 Platform & version: Android 2.3.6 Device: physical device model Host Operating System: Window 7 Titanium Studio: 3.1.0.201304151600 ~~~ Dear everybody, Currently i have been working in a project to...
Take pictures from the App and get on my computer
Hi, In my last post I was wondering how to take pictures from my app(a shortcut to the camera), select this specific pictures(maybe rename them with a specific name start like title1, title2. so i can select directly from the code), and send to a default...
How do i use my app to send pictures to a DropBox account
First of all, i already wanna thanks everyone who tried to help me. So this is what i wanna do from my app i will have a shortcut to take pictures, then rename this pictures with a specific name start, like title1, title2, title 3. After this is done the...
Upload images to a server
Hi, How do I upload images to my server and get back the results on the iPhone (Using Titanium). Please help!
What is the path to density images in Alloy?
I have the structure that I'm assuming that is correct: ~~~ app/assets/android/images/res/drawable/ app/assets/android/images/res/drawable-hdpi/ ~~~ The only way I found to get a image inside that folders to show up is by using the full path ~~~ icon:...
Map with Pins using ImageViews
Hi, I am currently trying to create a map with over-layed pins using Titanium. Similar to how Google Maps looks. Below is a simplified view of my Alloy page layout: ~~~ <Alloy> <Window id="Map"...
Animate Remote Images -
Hi, I try to animate remote image. All is OK on simulator but not on devices (iphone / ipad). All is OK on device too, if I use `image` and not `images` (but of course I've only one image and not an animation). I try this : ~~~ // load images var...
Dynamic Barcode Image won't display
Hey all, I'm having a problem displaying some dynamically generated barcode images. This was working in some previous version of the SDK and broke at some point (I honestly don't know which version). I'm using Zend Framework to generate the images and...
When replacing an image in coverflowView shows only half of image
In my app I use a Titanium.UI.iOS.CoverFlowView. Initially it is put on the screen using Alloy. Through time, new images are added to the view. Each image is pushed {image:.. width:.. height:..} on an array. This array is given to the coverflow using...
Clickable images within Scrolling Tabs view
Hi everyone, I'm working on an app that has a bunch of products that you swipe through using Scrolling Tabs view. I've been trying a bunch of different code so that when you click on one of the images, it acts as a link and brings you to the appropriate...
images wont load
My image wont load var imageView02= Titanium.UI.createImageView({ image:"images/glyphicons_089_building.png", height:120, width:165, bottom:24 }); whats wrong?!?!?!
Compose an image from 'n' images
Hello everyone, In Android, depending on some info, I compose an image out of "n" images. This image will be show in a every row in a table. Composing that image slows very much the app. Here the example code: ~~~ row =...
Bitmap bounds could not be determined when displaying simple images
I've looked at most of the posts in the Q&A on this issue, but still fail at understanding why I consistently get this error on displaying simple images. The images that I have been trying to display through Appcelerator display fine in a native...
How to save rotated pictures
This one has me puzzled. I am writing an app that lets my users collect field data along with pictures. Pictures can be selected from existing photos in the gallery or by starting the camera from within my app. Since the pictures are large and will later...
Does Alloy Buttongrid Use Density Specific Folders for Android?
Wondering if the buttongrid image gathering from id will use the high/medium/low folder set up like the rest of Titanium? The buttongrid documentation seems to be pretty specific on where it wants the image to be: The ButtonGrid expects to find the image...
Android loading multiple local images veeery slow. Caching? Reuse the same image?
Hi I'm developing an app to where i have to list a lot of icons/logos from companies and for the better performance i have done that each list has to finish to can continue with the next, and the same with the images inside the list, one by one. //...
Android - WebView images
For some reason this code works perfectly in a webview on iOS but not in Android. Any ideas why? Is the *app://* that doesn't seem to point to the correct location... ~~~ <img width="120" height="120"...
Titanium: Tab's icon image not working
I am trying to change icons of my tab group's tab, but it doesn't show the image. For **iOS** I've used below code: ~~~ var win1 = Titanium.UI.createWindow ({ url:'Tab1.js' }); var tab1 = Titanium.UI.createTab ({ ...
Images on android
Hi I have a simple question: To manage the deferent sizes of android devices i put the images in the good resolutions in the ldpi or hdpi ... folders. For example I need to display a view with background like this : ~~~ var navBarContainer =...
Loading remote images is slow
I have done some apps (ios and android) with Titanium with a list of items and images, restaurants for example. Some of this apps have more than 500 items. The question is: I think Titanium loads remote images really slow. If I compare my apps with other...
ImageView and animation images array
I've got an issue with the imageView and using the parameter images. On SDK 2.1.5 the following code works as expected, each image in the array is scaled to 75dp. On SDK 3.0.3/3.0.2.GA the view is scaled correctly but the images overflow the boundaries...
show more images when scroll down
Hey Guys.. i'm getting images from remote server. There are too many images, first time it shows only 16 images, but i want to show more images when the user scroll down the ScrollView or View then it load more images and show more images. Please help me...
how to add images when i ask a question ?
i dont see any option to browse and select an image
Why is density reported as "medium" but images are being pulled from hdpi instead of mdpi?
I am spending time getting my head around the detail required for supporting Android. I am using dp for all images and Ti views where I would have used pixels. Seems to be working OK. But one thing that is really confusing me is why...
Developp for Android
Hi, I want to developp an app for android. How titanium manage sizes. i have theses folders in my project : res-ldpi res-mdpi res-hdpi res-xhdpi with long and notlong prefix. so what are the sizes of images i should put in these folders ? are devices...
scrollableview with images scrolls badly
I have spent weeks working on a photo gallery app for only the iPad, based on scrollableview. Everything works fine in the simulator. On my actual device, however, the app is unusable because the scrollable view hangs while scrolling. I have a single...
PNG Background Images do not show up on physical device, but show up in emulator fine.
Someone else had this problem, but it looks like it is not resolved http://developer.appcelerator.com/question/40541/backgroundimage-problems I have a background image: ~~~ var window = Titanium.UI.createWindow({ ...
Alloy: android not getting images
Hi! android is not loading images within .tss file. Everything would work fine under iOS simulator, but once I switch to android, it wont load any of the images, whats the problem? I have loaded images into all the folders that I could possibly get at (all...
icon image resolution
HI all We have created buttons/icons for our app, and while I'm not 100% sure, it appears the images may be fuzzy/distorted on an Note2 (possibly because of the larger screen size), OR just we dont have the right DPI resolution. Can someone advise on...
Images displayed in emulator but not in Smartphone
Hello In Android Emulator i can see images but not in my smartphone (i've tried with two different smartphones). Could somebody tell me what could be the problem? Code: ~~~ Ti.include('introDatosWindow.js'); var winIntroduccion =...
Display Images in scrollView on Android
Hi, I'm devalopped an app for i os and i'm traying to make it works on android. I have some trouble with this code: ~~~ var entreprises = require('BusinessLogic/getFromDb').getEntreprises(); // -------- scroll view that contains all the info var scroll =...
Short iPad/ iPhone image size guide
I only recently discovered you could add "@2x" to the end of image filenames to improve display on the iPhone 4, so I thought I'd share a short image guide for anyone who needs it. This may be old news to some of you, but just in case. Add extra...
Can I download a entire folder and store in my app resource?
So... I'm trying to download a entire folder from my web-service that contains many images and I need to access all of this images to display in screen after. can I do this? or download all my images at the same time ? thanks
Coverflow with remote images
Inside an app I am making I have an image gallery using CoverFlow. I want to use images from a folder on a webserver, and I have a filename reference in a MySql database. I can retrieve the file names, but can't make it work in the coverFlow. My PHP...
How select multiple images using Titanium ?
i trying to select multiple images. i'm unable to select multiple images using titanium. can some help me to sort out this problem. i need list of selected images or list of files. please help me get out here. i using titanium sdk 2.1.
Include Ti.Blob as a parameter to a Ti.App.fireEvent-event
Is it possible and/or advisable to include a Ti.Blob (in my case an image) in a global event, like this: ~~~ Ti.App.fireEvent("myglobalevent", { Photo: myPhotoBlob }); ~~~ And then of course catch it in the listening function: ~~~ function...
Are imageAsResized always JPG?
Is it safe to assume to imageAsResized() always delivers a jpg image, no matter if the image originally came from the camera or from the gallery? (I am interested in the reply for both iOS and Android) If not, how can I know which format it is?
Ways to allow users to rotate images
Whats the best way to allow a user to rotate an image in appcelerator? anyone have any code that works...eg. where they can just click the image to rotate it or actually use a finger motion to turn in clockwise or counter clockwise Thanks in advance
Best Practices for Images
We're displaying various small images on buttons in our Android/iOS application and I'm investigating a good long term strategy for the format of these image files. We layout and scale UI components according to a percentage of the screen dimension so...
How to check if a scrollableview is done preloading all images?
with cacheSize you can set the number of images that the scrollableview has to preload, but how can I check when it's done preloading? Reason I need to know is because I want to show a loading indicator while loading X-number of remote images, that...