Community Questions & Answers
Should I null objects to release memory in alloy?
I'm trying to understand how to manage memory in a titanium alloy application. I'm using the Apple instruments tool to measure and monitor allocations. Imagine I have the following: - controller index.js + index.xml (contains 5 views and 5 labels) -...
Performance of Titanium 3.x on Android Tablet
I am developing an app for online stock trade on Android Tablet: - Alloy 1.x - Samsung Galaxy Note 10.1 - Android 4.1 After building the app using Titanium, the app is not smooth enough. I am wondering what course the performance. I am thinking of...
Alloy TableView Slow At Initial Open
I am trying to display font list in a table view so a user can select one of it. However when I open the controller on first time, populating the list is rather slow but the second time to open it, it is very fast. How can I improve the first initial...
Titanium alloy guidelines and perfomance
I have been trying to develop an iphone app in alloy framework.I have a bunch of questions about titanium development and alloy framework. 1.In my app I am using a lot of remote http calls.whether I need to make these calls in corresponding controller or...
Perfromance issue question regarding scroll view and table view in a scrollable view.
The set up --------------- I am developing a horizontal news feed using the scrollable view. In each view, there is a background image that can be scrolled horizontally in a scroll view. Additionally, overlaying the image is a table view with about a max...
Titanium performance generating random strings
Hi there, this is quite a long post. I just made a very simple experiment and I don't like the results. I want to know if I did something wrong. Be patient and read through all the post before answering. You can even try the experiment yourself and see if...
Performance: Leave database open?
I've always been a developer to dispose/close things as soon as I am done with them, to avoid leaks and improve performance. While without a doubt you should close a result set as soon as you are done, I have also closed & re-opened my database in...
Improve performance when animating complex views
Hi, i asked something similar a while ago but still have no satisfying solution. The current state is: I have, at least, two complex views (each has 10 Subviews, 1 ScrollableView, 50 Labels) and two animations (one for every view) running "in...
Android WebSettings.RenderPriority in webview
Hi, is it possible to set the render priority in Titanium for webviews? as it says [here](http://developer.android.com/reference/android/webkit/WebSettings.RenderPriority.html) . If not, what would be the steps to update the SDK/create a module for this?
Cleaning up Modal Windows with Navigation Groups in Alloy Applications
Hi all- I have an application which launches a modal window. This modal window contains a form, and within the form, I have a NavigationGroup which a user can navigate between fields to select multiselect options within other views. The form also...
Using Sencha Touch to implement better Ti.UI
Hi, what do you think of using Sencha Touch to implement Ti.UI? We have severe performance problem with out mobileweb build and looking at the current mobileweb Ti.UI implementation I can see why. Sencha Touch has a similar component model as Titanium....
ListView component really slow / laggy with hidden rows
I'm hiding a number of rows in a ListView component. Nothing extreme. I have about 20-30 ListItems and sometimes a user can click a button to filter those records based on e.g. category. I hide the rows that should be filtered by making them 0px in...
Menu performance in Android
Hi all, is there any material specifically about menus/actionbar and menu updating for Android in Titanium? I see very little material about the issue and nothing about how to update a menu. My personal case, I have a menu with 4 different actions that...
Performance of HttpClient (part 2)
Sorry, I accidently marked the original thread, http://developer.appcelerator.com/question/110071/performance-of-httpclient , as answered (and can't find a way to unmark it). To follow up, even with local testing the timer shows almost 2 seconds when the...
Performance hit when putting labels in ListView
Hello I'm currently testing out the new ListView, which appears to work much smoother than the TableView in a lot of cases. However, as I was testing I noticed that putting labels into the ListView quickly gave a performance hit on iPhone when having ~200...
How to improve performance by using the Apple Instruments application
On the following URL I found an interesting write-up about measuring app performance. https://wiki.appcelerator.org/display/guides/Managing+Memory+and+Finding+Leaks It says: "In general, when checking your app for memory leaks, you should be...
How to swap pages (js files) out of a view without keeping them in memory
First, some background: This is my first week in titanium and I'm having trouble forming a mental model for how to structure content. I have a nice table-view menu that I want to use to control all the navigation in my app. It's a sliding menu that comes...
Performance question: Allocations keeps rising when using ListView component
Here's an image that shows the Apple instruments Allocations: http://postimg.org/image/go7q7bjbf/ As you can see the #living and Live Bytes keep going up. This happens whenever I execute the following code, which basically switches between different...
Window Not initialized until it is open?
I found an interesting thing: The Ti.UI.window might not be initialized upon creation, until it was open. I show my code here to see if anybody is kind to comment. ~~~ function RankWindow() { var mainWnd = Ti.UI.createWindow(...); ... var...
How to improve performance by avoiding global scope
Hi guys, I've read a lot on the forums about avoiding global scope and wanted to ask how I can improve my code. I'm writing an application in Alloy that has several view and controllers. The application works, but I'm concerned with performance not being...
Ask help for unacceptable Ti UI performance: nearly 1.5 seconds to open a UI with 20 widgets
I though Ti would have the quick response in UI nearly as the native API before I decided to choose it. However the real world is always realistic. I encountered some performance issues which made my app not work well as I expected. One of the issues is...
How to make smooth animations on Android
The real question here is how can we improve the actual animations for android, when we build iOS apps, we can do beauty ones, very smooth and cool even with ease, but then when we run our apps on android it looks very strange, not even close to smooth and...
Android Performance Slow
I've started building my first Android app and I've noticed that the overall performance is extremely slow and laggy. I'm not testing in the emulator, I'm testing the app on a Nexus 7. So far I have really basic animations were views slide in from the...
Titanium Alloy BackboneJS I/O Speed Where is the bottleneck?
Hello Everyone! I am currently using Alloy to build an App using the Model-Tableview binding. The App currently shows a list of categories, then when you click on a category it does a lookup using SQL (custom collections.fetch) where I join between the...
scrolling multiple views at different speeds
Hello everyone, I'm attempting to make an effect where background scrollViews will scroll at different speeds than a foreground scroll view. The foreground scrollview is the only one which the user will interact with, but I'd like the background...
Long vertical scrollview performance problem
Hi guys, I'm having serious trouble with scrollview performance and wondering if someone has experience on this can share his strategic solutions. I am developing a pinterest-like app with 2-column scrollview which is the container for a large number of...
TableViewRow className Reuse on Android: Switching ImageView Still Slow
I discovered TableViewRow className and TableViewRow reuse today. It greatly improves the performance of my TableView on both iPhone and Android. However for Android, if I scroll really fast, there is a noticeable delay in switching the right ImageView...
ListView Pefromance Issues on Nexus 7
Just started with Titanium and am trying out the 3.1.0 RC release. Scrolling the ListView is pretty good on my Galaxy S2 running 4.1 but for some reason the performance on my Nexus 7 is really poor and choppy. Here is my...
Slow Android Emulator
I have an app that I created originally for iOS and now I am porting it to android. I am finding the app to run unusably slow in the emulator. I tried to use mostly titanium objects so they would port properly but I am still seeing extreme slowness and...
Webview Performance vs Safari - Any Tips?
Hi For part of an app that I'm working on, I have a webview that allows the user to interact with an external wwebsite. I know it's not ideal, but it works ok for the most part. The website is powered with Backbone and my problem is that in one...
TableViewRow with Content parsing is SLOW
Hello, I'm having big performance Problems with TableViewRows. The Markup looks like this: ~~~ <TableViewRow id="row" hasChild="true"> <Label id="label"/> <ImageView id="flag"/> <View...
Android: Simple Tableview with images very buggy!
I have built a simple tableview with 25 rows that each contain a scollableview. In each scrollableview I have 3 pages that each contain an imageview of an remote image that takes up the width of the screen. The idea is to create something similar to photo...
Application from iPhone to Android
Hi, i have developped an app for iphone. it works fine. now im using the code for android. it works too but very late !! when lunching it on simulator, i see these messages : [INFO] [2013-03-18 10:00:00,794] BusinessLogic/BusinessLogic/insertInDb.js...
Click event is very slow in Table View (iOS app)
I am loading 350 records from a remote json file (3 text fields and 1 image field) into table_view, the data loads fast but when i tap on a cel view to go to the detail view, it takes about 20 seconds for the tap to take effect and load the detail...
Mobile web poor performance/user experience and Safari bookmark on desktop
I have a little problem of performance/user experience in my mobile web application. When user from iphone safari saves the page as a desktop bookmark, each time the user opens the application from the desktop, it reloads the application from the...
(solution) Android slow to render views?
Hi all, Just wanted to share the solution to a problem I was having in case anybody else ran into the same wall. There are a few posts here that talk about Android running slowly. My own app was victim to the same defect. After probably a week of trying...
Tableview with datacollection causing long delays on device
Hey all, recently I've been trying to work with collections/models and I am running into a performance issue when trying to tie a collection to a table using dataCollection. There are long delays when I try to change the table data using fetch(). I don't...
Why does TableView take longer time to show up after calling tableview.setData?
I have a tableView which has about 300 records. The TableView was loading quite slowly on my IPhone, so I tried to perform an benchmark test writing to the console. Following is my code: ~~~ var startTime = Math.round(new Date().getTime() / 1000.0); for...
Bad performance when dragging a window
Hi, i am experiencing some bad performace issues with my app. The app is based on alloy and should have a menu which can be revealed by dragging the top window to the right, like in facebook, path or similar apps. I use the touchstart, touchmove and...
Increase app and window performance (I've included a video to show the problem)
Hi guys, I've got a rather annoying problem with the app I'm currently building which I really need to get fixed. Basically, every time I open a new window it takes a while for the new window to be loaded, resulting in a non-fluid flow throughout the...
Database or array - what gives best performance
I have a performance question. I'm downloading information from a database, basically a phone book. About 1300 persons with about 10 properties such as phone, email, department etc etc. Total size 120-180 kB. Should I put this data in an internal...
~20 images in a ScrollView crashes when camera opens
I have a variation of a basic photo taking app: - Click a button - Show camera - Take a picture - Close camera Once it closes and the image is saved (to file and sqlite, via a Backbone model) the image is added to the list of images. All is well until I...
Best practice: Scrollable Tableview with quite a few Facebook-friends in Alloy
Hi there, so, I was wondering if anyone of you guys can point me in the right direction with this problem. Btw., I'm using the Titanium SDK 3.0.2 with Alloy. So what I'm basically trying to archive is to **list someones Facebook-friends in a scrollable...
the performance of app written by titanium
I wrote app using objective-c java and html5 Just wonder the performance of app written by Titanium compares to the above 3 solution?
Improve table view performance?
I'm having trouble getting TableViews to perform well when scrolling. Scrolling is not smooth. I've tried adding the className attribute to my rows and custom rows which seemed to help some, but scrolling is not performing up to par with what I would...
Opening a window very slow
I'm writing a crossplatform App. The app is actually very simple: There's a list and then you can open a details window. Now opening a new window is very slow! On my nexus 7 it just feels not right. Measuring it on the emulator, just the opening part of...
Titanium Studio stops responding every few minutes
Working with Titanium Studio is frustrating me. I'm wasting a lot of time watching the Mac rainbow wheel but I'm still excited about this path towards mobile development. I would like some help or advice on getting Titanium Studio to be more responsive...
Android Device database update issue
I have just updated by Android app, however, before I release to the app store, I am trying to figure out a performance problem on a specific device. At the start of the app, I update a local SQL database with data from ACS. On newer phones (like my HTC...
XML Parse and element retrieving performance
Hello, i was just wondering what's the best performance between going through each node and getting what you need using types and names(ie. getNodeType and getNodeName) or just using the getElementsByTagName method on root node. Any hint/opinion is really...
Emulator takes much time to run alloy code.
Hi I am using titanium alloy for android Application development. It takes much time to run application in emulator. The reason might be it builds application each time when I run. Is it usual behavior or I am missing anything in setup of alloy? In...