Community Questions & Answers
Titanium.Network.NETWORK_NONE not working in Android
Titanium.Network.NETWORK_NONE is not working in android the code bellow Titanium.API.info('Type ' +Titanium.Network.networkType ); Titanium.API.info('constant' +Titanium.Network.NETWORK_NONE); Display Type 0 constant undefined My android sdk is...
Can't connect to sqlite database in my Resources directory
Hi, in an Android project I must execute a SQL query using a database db.sqlite. The database is in the Resources directory (it is packaged with the app directly) and I use this code to query: ~~~ musicList.addEventListener("click",function(e){ ...
Android Emulator / Internet Connection
Hi, I have developed an app that it's working fine on device, but when I want to test it in the Android Emulator it get me a message that I haven't Internet connection. I try to get data from Internet using the HTTPClient object. I have opened a browser...
Unable to Login To Appcelerator
I am unable to log in to appcelerator. The internet connection I am using requires a proxy. Thus, I found the link "Using Studio From Behind a Proxy" however, that does not seem to work either. I think it has to do with the Security Certificate....
Connection Speed Detection
I have an issue with my app where I upload an image that when I attempt to upload at a size greater than 400px over EDGE the upload will fail. On 3G and Wifi the upload seems to work up to about 1000px (or more possibly). So I needed a way to detect 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...
Problem with the "Titanium.Geolocation.forwardGeocoder" function
Hello everybody, I am testing the Titanium.Geolocation API within this code: ~~~ var mapView = Titanium.Map.createView({ mapType: Titanium.Map.STANDARD_TYPE, animate:true, regionFit:true, userLocation: false...
how to close xhr
Hi, in my iPad app i have a get request, do you know how can i close this request? example: i prepared and sent my connection: `xhr.send();` now how can i close this connection and send another request? thank you
Connection Refused - HTTPClient
I doubt this is related to titanium. I am using MAMP and I am trying to access a PHP file. It works fine in the iPhone emulator, but if I try it on the android emulator, I get a connection refused error in my onerror method. Anyone know why this is happening?
Check net connection in each tab of tabgroup
I have an app with a tabgroup, each tab reads data from a server and has its own .js file. How can I check the net connection every time I change tab? And then, if connected, load the data corresponding to the selected tab. Any event for this? thanks.
Check if Database is connected(open) in titanium
Hi, I am a beginner so need your help... How can I know if my Database is connected? My code looks something like this --->>> var db = Ti.Database.open('db.sqlite'); var sql = "SELECT * FROM `test`"; var result = db.execute(sql); Is...
Open a SQLite database and make some requests
Hi, i've just created a database with sqlite3 but when i tried to access to it and make request, an error occur. At line 8 ("var rows = db.execute('SELECT * FROM informatique');"), the error is: ~~~ "Wrapped...
Stop a Connection (using suds)
Hello, With my application I use webServices in order to connect to a server so I create XHR connection, using Suds.js (KitchenSync). Because posible network problems, i need to stop the connection when a time (x seconds) is over (and send a error to the...
Joli Error: Cannot read property "Connection" from undefined
All, I am using the following configuration: - Titanium Studio, build: 1.0.6.201110251616 - Titanium SDK 1.7.5 - iPhone SDK 5.0 - xCode 4.2 Everything was fine, and when I added a new model, I started getting the error "Cannot read property...
Titanium Desktop Update Manager SSL Communication issue
Wenn using the UpdateManager I got this on the log 21.08.11 17:45:37,705 [0x0-0xc76c76].com.reachdeck.desktop.free: [15:45:37:704] [Titanium.Network.HTTPClient] [Error] Failed for URL (https://api.appcelerator.net/p/v1/release-list): Problem with the SSL...
Titanium Studio updates via a proxy
After reading through all the posts about not being able to start Titanium Studio from behind a proxy, I have connected using a 3G card and assigned my proxy IP and port number (for HTTP, HTTPS and SOCKS). Titanium Studio now starts up fine. However, the...
Desktop App having trouble connecting to a remote MySQL
Hey there. i know that this should be really simple. I've done it before numerous times (non-Titanium environments), but for some reason my app keeps crashing. I have the php checkbox checked. In my index.html I have an anchor tag that links to...
how to manage user login
hello , I have a function to manage the user of my application I would like to know if the user is connected to my application or not because according to whether it is connected or not there are more functionality can you give me an idea please
Make a FTP connection
Good morning, i'm trying to make a connection with a FTP server in order to dowload and upload images from this server. My configuration: - titanium studio 1.0.1 - SDK 1.7.0 - Android mobile project for galaxy tab Is it possible to make this...
connection management
I want to manage the person who connects to my application for this fact I must create a class I think to put a variable to false when the user is not connected to true and when it is connected once the person connected has a disconnect button to...
Phone call streaming to another devices by Wifi
Hello ! I have developed the code that it reaches another devices and creates and sends it a string by wifi. The last thing to do is to call from a devices to a number and send to the other devices the streaming audio generated by this phone call. Is it...
Is it possible to fetch name of devices connected via bluetooth or wifi?
I want to develop multi user application in which i want to display name of users which are connected via wifi or bluetooth. Please reply is it possible ? If it is possible than please explain with example.
forwardGeocoder doesn't release connection
I'm using forwardGeocoder in my app and it works perfectly in the app, but for some reason once forwardGeocoder has been invoked, it seems to continue to use the internet connection. The connection spinner in the status bar continues to indicate activity,...
Geolocation crash if no data connection
UPDATE AT BOTTOM OF POST Hi, I've been successfully using the Geolocation module in my iPhone app for a while now, and have just gotten round to crash testing. I've hit a problem - when the device has no data connection (no wifi, no 3G connection)...
titanium developer crash on windows when no internet connection
hey their , help plz titanium developer crash on windows when internet connection down thank u in advance
WIFI Connection Test
Hi, I'm trying to develop an application that makes connection with another mobile by WIFI connection. I can't find any videotuts about or docs. Anyway can I test this web application to simulator locally ?
tcpsocket not connecting to server
Hi, I'm using the following code to connect to a TCP server but I don't see any TCP connection being established. ~~~ this.socket = Titanium.Network.createTCPSocket({ hostName:this.host, port:this.port, ...
Unable to Login to Titanium Developer - Desktop
I've installed the TD Desktop on a fully updated Windows XP PC. However, when it starts up, the cloud and network icons are lit, but not the authenticated icon. Then after 10 seconds the network icon goes dark. Then if I complete and click either the...
Titanium.Network.online reporting a false positive
The first line of my app.js reads, Titanium.API.info('Titanium.Network.online: ' + Titanium.Network.online); This prints out 'Titanium.Network.online: true', even if my WIFI is off (and I'm not plugged in). I am apparently getting a false positive on my...
TCP Socket connections and Blobs
I'm trying to get the text that has been sent down a socket connection to me. Documentation dictates that this should work, but it doesn't: ~~~ TCPconnection.addEventListener('read',function(e){ alert(e.data.toString()); }); ~~~ Anyone have any...
Simple code example to check if there is a network conncection
Hi there, is there someone who can expand this two lines of code with a check if there is a network connection an give out a warning if not? Here is my simple example: ~~~ btn_03_01.addEventListener('click',...
HTTP Client Connection Header bug?
hi, I'm using the Titanium.Network.HTTPClient to send a GET request to my RESTful Service. I noticed a few things: 1. The HTTPClient's Request headers contains two identical headers of this type: "Connection: Close". I think its a bug - only a...
webView timeout?
hello, when a webview loads a remote url, is it possible to check connection problems, e.g. set a timeout or monitor online status etc. what's best practice? thanks, uno
Showing 1-33 of 33