Community Questions & Answers
Titanium Graph and Avg Functions Etc ??
Hi Developers , 1. My application based on feedback form submission,validation,show the final status and more... 2. In this app specifically I'm creating for iPad Device. 3. In this case i done with feedback page. and feedback data's are stored in the...
Not able to capture events at Webview
@All: I am using webview with two iframe inside index.html , iframe having src like page1.html, page2.html and then i fired event from titanium and trying to capture it at webviews js but im not able to capture event from titanium. i just wonder if set...
Webview with Ifame not able to capture app event
*@All:* I am using webview with two iframe inside **index.html** , iframe having src like **page1.html**, **page2.html** and then i fired event from titanium and trying to capture it at webviews js but im **not able to capture event from titanium**. i just...
Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.
Hello, I have created an Android module using a .jar library and with @Kroll.method methods I expose the desired functionality to the Titanium Studio Project. But since the .jar library works fine if you use it in a test Android native "client"...
Buffering next song in playlist
Hi all, question for people who do music streaming... I have a project that has a playlist of songs, and I need to be able to buffer part of the next song in a playlist, so when the current one ends, it can go to the buffered version. Then while its...
Sounds won't loop (Android)
Hi all, I'm making an array of sounds using the following code: ~~~ for (i=0; i<4; i++){ bellSounds[i] = Ti.Media.createSound({ url: '/Audio Files/Bell' + (i+1) + '.wav', preload: true, volume: 1, looping: true }); }; ~~~ It makes...
photo location in Places
hi, I have been experimenting with titanium Cloud services which are great. However I have one problem that I'm not able to resolve. Photos uploaded to cloud are nicely linked to the user who uploaded them but they have no link to Place nor any GPS...
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...
Titanium Graph with SQLite Values..??
HI developers very Good Noon, I'm facing some issues with Titanium graph plugin.. And How to plot graph with sqlite database values as already saved in my app. Please let me know dev's i'm waiting for ur help now.. Thanks in advance... SuthanM.
PayPay and Remote Views
We have created a paypal page on the server, and if it succeeds goes to a success page, and if canceled goes to the cancel page. This page is loaded in a webview. So I added this code: ~~~ echo "<html><head><script>function...
Overriding alloy generate
Hey all, I've scoured the docs, google groups, the internets, and this forum for an answer to this but can't seem to find anyone who's even asked the question before... Is there a way to use templates while calling alloy generate? I see that you can...
ListView: Swipe event not working
I want to use swipe event of listview with Titanium 3.1 SDK. But it is not working. Even touchstart, touchend etc. are not working. I wrote like: listView.addEventListener('swipe', function(e){ alert('swipe called); }); Can somebody suggest the...
Alloy TextArea loses focus when you type more than one line
I've got a text area inside of a table row and as soon as you type something long enough to expand the height of the text area, the box loses focus. They keyboard stays up but nothing typed shows up in the box. Is there an easy way to find out where the...
Is it possible to set the focus to just the hour or minute text box of a Time Picker?
The reason I ask is because I have a popup with just a single Time Picker on it. When the popup first displays it has the current time defaulted into it and the user may change it. However, upon changing the value in the picker if you, for example, still...
Google API distancematrix
Hi All, I have problems with the distanceMatrix of Google. When I fill in one distance, my App - for Android works fine on version 3.1. Soon as I append the destinations with more locations it does not work anymore. Who knows what the problem is. Oh yeah,...
Master Detail template - can't I show the price
Hello I've been trying to work this out all day (I'm not very bright!). What I want to be able to do us use the tableView functionality to show a variable name and on the same row the value. It will also need to be hasChild:true so that the value can be...
Conflict between native Android module and Ti detecting pinch gesture/event
I have a native Android module that renders PDFs, and it's working great, with one issue. I have an onTouchEvent in my .java file that detects a pinch and redraws the PDF based on the zoom level of the pinch. If I run my code as a native app, this works...
Touchstart & touchEnd for ios not working
Hi, I have a tableview with touchstart and touchend events, but not working good. When I do click a row this should go to new window but only goes once if I do click for second time in this event no does nothing. It is as if locked. ~~~ function...
Problem with the Titanium SDK
Hello everybody, I installed Titanium recently, and I did all the required updates... but into the preferences window, I got always this message: ~~~ titanium sdk home could not locate a titanium sdk at the given path ~~~ And when I tried to create a...
Installation Error
Can't install Titanium Studio on a Windows 7 laptop because of compilation error. Assistance required.
Google map, serach ACS query and Tab-group ortientaion
I am developing the android app using titanium mobile Sdk 2.X with backend ACS cloud services. I am facing the following issue while developing app 1) I want to implement the Google map in my project. I checked the titanium 2.x map Documentation I...
Unable to extract zip file. (TermiT Zipfile)
The app contacts the webservice to get a json object which has the following properties: Value,Message,StoreFile. The StoreFile property contains compressed base 64 encoded string. Here are the steps I'm following to extract the file but it is not...
JSON to TableViewRows with Headers/Filtering in Alloy project
I have a JSON object that contains a collection of records that all have date properties. I'm able to easily create a TableView to display the collection. I'd like to add custom headers to the TableView for each date. It needs to be custom headers because...
Error Message when compiling
I'm getting the following error message in the console when I compile my application, Does anyone know why I am getting this error message? [ERROR] : FATAL ERROR: CALL_AND_RETRY_2 Allocation failed - process out of memory [ERROR] : Alloy compiler failed
Impersonating the NavigationGroup Back Button With the LeftNavButton in Alloy
Hi there- I am customizing my NavigationGroup and TitleControl/Buttons to yield a clean/flat look within my Alloy application (sample code below). In doing this, is there a way to mimic the "Back" functionality that comes out of the box from...
Urban Airship. Is this the correct way of registering a device?
Hello! I am trying out Urban Airship but I am having problems with using it. This is my code in App.js: ~~~ UrbanAirship = require('ti.urbanAirship'); Ti.API.info("module is => "+UrbanAirship); Ti.include('common/urbanairship.js'); ...
Titanium Update Error
I've been trying to update the following packages through Titanium Studio: - Titanium CLI 3.1.0 - Node.ACS 1.0.2 - Alloy1.1.2 Eventually, the notification from Titanium Studio shows me that all packages were successfully installed. But when restarting...
Can't detect gesture "Shake" when publish application
Hi, I opened cmd and write : keytool -genkey -v -keystore testKey.keystore -alias key -keyalg RSA -keysize 2048 -validity 10000 with my personal key is: testKey.keystore and alias : key i can generate the keystore and in Titanium i go to...
Facebook Appcelerator and Parse integration need help
Trying to create a user and link the user to Facebook directly from Parse. more details are posted here including [source code can be found here](bit.ly/ZIzybH)
Android maps v2 on samsung galaxy S3
Hi, I developped android maps v2. it works fine. I tested it on samsung s2. it works well but on samsung S3 ? i have black screen ? did you meet this case ? thanks
iPad Modal window and hiding keyboard on blur
So, I am working on a project where I use a modal window (MODAL_PRESENTATION_FORMSHEET) on the iPad in which the user can see the settings for the app. The problem is that when they first enter a textfield and the keyboard shows up, running...
How to share/upload image on Google+ wall in titanium
Hi, I am developing an application in titanium android. I have to upload image to google+ wall using there api calls. I have seen many documentation of google api. but I am not getting, How to implement it in titanium? Any help would be...
Android: webview toImage() problem
In my app I use this code to make a screenshot of an entire webview: ~~~ j = 5 //number of times necessary to see the entire webview for(var i=1, x; i<j; i++){ var screenShot = myWebView.toImage().media; ...
Emulator process exited with code 3
__I have a problem with running my emulator with a fresh project.__ I tried to run a new project, whether an alloy or not, without adding any code. But when I run it in my emulator, I got the errors below. I don't know how to fix this. Help please.... I...
View is displaced after focusing a window
Sometimes the tableview displaces itself from the origin position (left: 0), after the main window is opened for the first time or gain focus (e.g. popping the child window). The tableview moves to the left till the right edge moves to the half of the...
Sybase Unwired Platform (SUP) Titanium integration problem
SUP is a SAP product to enable connectivity between mobile apps and SAP systems via the SUP platform. There is support for native platforms iOS, Android and web amongst several others. Titanium is not directly supported (yet). I figured to package the iOS...
Open push notification in window
Hello all i deployed push notification on my app using titanium sdk , the problem is that when the user receive the push notification from his friend , for exemple , when i add a new post , my friends receive a notification that i added a post , i wanna...
Can't click tableView row on empty space when checkbox added into the row
hi, i make simple tableview from this code: ~~~ function addTableViewRow(/*String*/ keterangan, /*String*/ jumlah, /*String*/ amount){ var tableViewRow = Titanium.UI.createTableViewRow({ height:'35dp', backgroundColor:(rowCount%2 === 0) ?...
Play Store Crash: java.lang.UnsatisfiedLinkError: Cannot load library libstlport_shared.so
Hi, We are seeing UnsatisfiedLinkErrors in our Play Store and we can't figure out why. We are not able to reproduce this error on our phones (S3 and Xperia) nor on the simulators. The only other clue we have is that one of the users wrote he is using a...
Titanium studio launching multiple times
I installed Titanium studio on Linux OpenSUSE 12.3 64b, but when I launch the studio more Titanium Studio (eclipse) instances are launched when the first finished loading. I'm running studio with JDK 6. Any idea? Thx
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...
Download an image to gallery on Android
Hi, I want to download an image (i have its url) to my phone on android. here my function : ~~~~~ function downloadOffre(url){ $.indicatorDownload.show(); var client = Ti.Network.createHTTPClient(); client.onerror =...
invalid key-value name on acs
hey there, I'm trying out the key-value example, I set up a key in the app management with the name 'test' and try to get the value inside my app (I'm using Titanium Studio). All I get is the following error: Invalid key-value name. this is my...
Unable to configure network read stream
Hi i have come across very strange problem.The radio stream works very well for android but on IPhone it gives me the above mentioned error.I have read much of these kinds of posts and i come to know that it is a titanium bug now i want to ask whether...
Require global function in alloy.js, error at startup on device.
I want to use the same instance of "Data" from all my controllers and makes is global in alloy.js. It works fine in the simulator but on my device I get "Application Error: Couldn't find module: Data" at startup. I'm using Titanium SDK...
Alloy autocomplete in javascript controllers is not working?
I'm new in titanium and autocomplete would really help me to start. I've seen that xml alloy tags are working fine but in controllers when I write Alloy. and do ctrl+space nothing is shown. Am I doing something wrong? all in this lib is missing from auto...
Update a single event using by Multiple Users at same time
Hi, I'm creating a social networking application in which I use the Cloud.Events.update() method to update an event. Since I invite many users for a particular event, they are updating it while accepting the invitation. I'm updating the event using the...
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...
Problem with external library (.lib) with newer SDKs?
I have a problem that I'm using external javascript library (.lib) with my code everything was working fine tillsdk build 3.0.0 after that all build did't run the code inside external library with Android OS is there any changes with using it or...
Migration from tableview to listview
Hi, today I started with listview. Heremy results and two issues:  The full source of module is [here on...