Community Questions & Answers
createHTTPClient SOAP response null when attachment returned
Hi, I'm calling a webservice through SOAP. Basically we parse the SOAP request manually (including a XML attachment). This works fine, we're receiving a response containing the SOAP envelope and the XML attachment. The response looks like...
After using 3.0.0 open windows not working anymore?
What has exactly changed i 3.0.0 since the method I am using no longer works? It worked fine in every version of 2.X but now I get the following error: Cannot call method 'open' of null This is the part of my code where it fails (used inside a...
Difference between null and remove. I am really confused.
Can anyone please explain to me the difference between null and remove? I am confused as to where to use what. What will release memory and act as a garbage collector? I am currently working on the performance of my app where a lot of memory is being used...
Choosen value in picker results in Null.
Hi, I want to store the chosen value of a picker in a small sqlite database later. But when I try to receive the value, it results in Null. It would be even better if I could receive the `custom_item` value but at the moment I can't receive anything. I...
Picker values initialized to null
Hi, in my App I use several pickers. My problem is that they have only the **change** event I can use. In many of my pickers the initial selected value is the one the user wants and does not change something. Therefore i get no change event. But then I...
SearchBar throwing null error after returning to window (Android)
Testing on: Android 4.0.4 Ti SDK: 2.1.2.GA I have an issue with the `SearchBar` throwing a null pointer error when returning to a window. My app.js looks like this: ~~~ //-- Fired when a successful login occurs, Opens...
Simple memory question
I have a problem with memory leaks in Titanium. The reason for this is of course because I don't remove all references to the same object so it doesn't get deleted by the garbage collector. However, when I started explicitly setting variables to null I...
Problem responseText is null
Hello. Some advice for you. If the this.responseText is null check this.responseData.text for raw data. HTTPClient can't sometimes parse received content if it has illegal symbols like ?... and with similar problems.
HttpClient returns null if web response to large (iOS)
Hi, I am developing an application for both Android and IOS. I am using a web service to obtain a user information from a database. This data is transmitted in a large JSON file (~40kb). On Android, this works perfectly. However, on iOS, as soon as the...
Annotations JSON
Guys, my request is work, is getting the right latitude and longitude but unfortunately is creating the annotation before getting the right values, so it comes as null. What can I do to make the annotation wait? thanks ~~~ var xhr =...
Does iPhone.NavigationGroup.close() actually null the object?
I'll preface this by saying I'm relatively new to Titanium. I'm using a iPhone.NavigationGroup to organize my windows in order to get those built-in "back" buttons that close the child window and take you back to the parent window. I'm...
Database: Query of primary key column returns null
Strangely, I can query all columns from a table with the exception of the primary key, which always returns null. Here is the code used to create and fill the table: ~~~ CREATE TABLE "mytable" ("id" INTEGER PRIMARY KEY NOT NULL ...
Settings.bundle broken in SDK 2.0.1.GA2
Since I updated to TI SDK 2.0.1.GA2 my settings only work in the simulator, and not in the ipod itself anymore. Cleaned the project, rebuilded to no avail. Someone has this problem? How to fix this? It was working perfect in 1.8.2 Casper
Facing problem in Integrating Codeboxed Audio Recorder Module for Android with Titanium
Hi, I am trying to run Audio Recorder Module (http://www.codeboxed.com/2011/08/titanium-module-for-android-audio-recording/) for Android with Titanium on Fedora 13. The problem is that i have tried various procedures of adding module to Titanium but...
isValidRow is NULL ?
~~~ // Setup Superglobal var HS = { dbCurrentVersion: Titanium.App.Properties.getInt('DBVER'), db: {} }; /* .... .... */ // Setup Database Shortcut: HS.db = Titanium.Database.open('main'); ~~~ Now I know that HS.db.execute works for me. If it...
null variable in android throws the NullPointerException error
I'm porting my existing titanium app for iOS to android, and I'm having troubles detecting when a variable is null. Whenever in android I try to check if a variable is null or not (and it is actually null) I get the error ~~~ Message: Wrapped...
Session did end with error (null) (splitview)
I have a strange problem, but i cannot find how to solve it. The problem is, i try to load a stream of XML in a tableview. Nou i have different streams to use. if the list is short, no problems, but when it is larger the 10 i get the following...
Geolocation at startup app
Hi, I'm not getting any coordinates when i start my app. But when i click the button for refresh, it shows the coordinates..... I have the following code in top of my function. It shows null on first run, after that it shows the lurl. Help...
Android: Namespace undefined when first window heavyweight
Can someone help me on this issue? It works perfectly on iOS but crashes on Android. As soon as you click the button, you get the error "Message: ReferenceError: "namespace" is not defined....
Execute null error on phone but OK in emulator
Hi, I have an Android application with several sqlite databases (the ones with less than 1MB size with sqlite extension and the ones over than 1MB as mp3, just in case). The App works fine in the emulator, but when I try it in a real phone I get the...
Passing rowData to a new window (in Android)
Hi Guys. Ive used this code to pass an ID from a table row to a new window. ~~~ row.id = item.id; ~~~ Its within a loop... Then when the row is double clicked it opens an edit window and passes the ID onto it so i can grab the data from the...
INTEGER PRIMARY KEY AUTOINCREMENT - doesnt work on android?
Hi Guys, Im creating a table on an app for android. I want an ID field that auto increments as a primary key so it starts at 1, then 2, then 3 and so on... ~~~ db.execute('CREATE TABLE IF NOT EXISTS drivers (id INTEGER PRIMARY KEY AUTOINCREMENT, title...
Removing annotations / iPhone simulator crash
I am currently creating annotations and am storing them in an array. At a later point I am creating new annotations and am removing old ones. The array is used to keep track of which annotations are currently placed on the map. Therefore I'd have to as...
xhr (HTTPClient) returning a java.null.pointer exception
Dear community, I have a problem with an XHR (`var xhr = Titanium.Network.createHTTPClient();`) returning a "java.null.pointer" exception. This seems to happen only on some websites that don't like the "XmlHttpRequest" but prefer a...
What is wrong here???
Can anybody tell me why this dont work and make a : Session did end with error (null) code: var winMainmenu = Titanium.UI.createWindow({ title:'Tab 1', backgroundColor:'#fff', backgroundImage:'background.png' }); var startHeader =...
xhr null value
I am getting null value for `xhr.open('POST','http://www.inetwebdesign.com.au/email.php');` and `xhr.send(data);` and i dont know why or how to fix it **my first code was ** ~~~ // // // RSVP response via HTTP POST to php script on server // var...
Global Variable - Failing Android?
I put a declaration for `Ti.App.test = 'Passing Worked';` in my app.js and a simple `Ti.API.info(Ti.App.test)` in my mainWindow.js. The iPhone emulator is outputting the string correctly, but with Android I am getting a 'null' output on the object. Any...
date picker value delivers null
the day picker value is null if "today" is selected. is there any hotfix or work around?
Ti.App Global Variables and Webviews = Null
Hi, I have an application that quieries a sql database and assigns the results/fields to Ti.App variables so that they can be accessed from any other js file. Whenever I open a window that contains a webview, these variables get set to 'null' Has...
XHR null response
HI, I'm sending a JSON request to a Drupal web service that normally works via javascript in the browser. Yet when I use Titanium on the iPhone I receive a null response. I've pointed my iPhone/Titanium request to a small script that intercepts my POST...
Database Install Making Me Sad :(
Hi all, first let me start by saying any help is GREATLY appreciated! I have been struggling for a good while trying to get a demo database connection made in my test app... The app will load with no problems but the minute I try to query the database or...
HTTPClient returning
Oops. title was supposed to be... HTTPClient returning NULL Hey all: All of a sudden I started receiving this error when receiving data via HTTPClient. If I call the xml file on the server it doesnt work but if it I call it locally I get the data as...
Database install existing . . . nothing but errors. Please help!
Here is the error I keep getting: [TRACE] E/KrollContext( 589): (kroll$1) [331,962] ECMA Error evaluating source: TypeError: Cannot call method "execute" of null [TRACE] E/KrollContext( 589): org.mozilla.javascript.EcmaError: TypeError: Cannot...
Showing 1-33 of 33