Community Questions & Answers
contact email form
i want to create a contact form where people can email me straight away from the app provided me with their email, subject and description.
How to encrypt data?
Hello! I'm a very beginner with Titanium, so I want to ask: How is it possible to encrypt files tht I created myself in the filesystem? Thank you, P.M.
HttpClient responseText returning trimmed text
I have been facing very weird, unexpected behaviour from responsetext after creating HttpClient. I am particularly trying to fetch all the content from a url and parse its responseText to get page title. Upon hitting page like...
Streaming audio over 3g with iPad
Nevermind, having tested it on another iPad 3g, i found no issues what so ever!!! I recently submitted another radio streaming app to apple for iPad, but they told me that it didn't work over 3g. Unfortunately I don't own a iPad 3g, but only the wifi...
set Badge for any tab
How can I set the value of a **different** (i.e. not current) tab's badge? I found this: https://appcelerator.lighthouseapp.com/projects/32238/tickets/94-enable-setbadge-for-any-tab-iphone-only —— but it is very old and doesn't work. <hr...
Titanium.Platform.displayCaps.platformHeight Runtime Error
Using the statement; Titanium.Platform.displayCaps.platformHeight returns the following run-time error on Android Emulator: "Cannot read property from displayCaps from undefined" -- what am I doing wrong here? Or is this a known bug?
How to implement a WebView progress bar
I am trying to implement a progress bar for a WebView, similar to what we have on Traditional browsers, showing how much is left for a webpage to load. Does anyone tried before?
Kroll documentation access denied
All of the links pointing to Kroll documentation on this page https://developer.appcelerator.com/guides/en/module_android.html return access denied. Yes I'm logged in. How do I view these page?
Unable to Validate - Whitespace
For some reason the instructions on this page are not working: http://developer.appcelerator.com/question/82971/filename-may-not-contain-whitespace-in-xcode-325-is-back Nevermind I was reading the wrong line. A mod can delete.
Compile OSX Program
I have created a desktop app that uses a database to store client data. I can package the program into an installer for windows and it works without issue. When i package the program for Mac it seams to package correctly. But when I try to run it, it...
iTunes 10.1.1 Run On Device error
Hello. I just updated iTunes to 10.1.1 and when I tried to run on the device, it displayed : Install Error Error: Traceback (most recent call last): File "/Library/Application Support/Titanium/mobilesdk/osx/1.5.1/iphone/builder.py", line...
How to reset an Android SQLite database?
My application uses an SQLite database, and it's useful during development to be able to reset the database so I can have a fresh start. On iPhone, this can be accomplished by just removing the folder that gets generated in: Library/Application...
HTTPServerResponse.write() does not really support binary data?
consider a small example: ~~~ var httpServer = Titanium.Network.createHTTPServer(); httpServer.bind(8810, function(request, response) { var file = Titanium.Filesystem.getFile('/var/www'+request.getURI()); if (file.exists()) { ...
app name in non-english
A while ago someone asked whether it is possible to have a Chinese app name under the app icon on the home screen. I wonder if this issue has been solved. As far as I know 1.4.x doesn't seem to get this thing work. When creating a new project using a...
Accessing function from their name.
Hello i'm trying to develop a simplified ioc framework for titanium, things goes well, except for factory. I want to be able in an xml file to define factory from existing function in global context for exemple : `<factory...
Build for Cydia
is there any way to build app for cydia ??? i follow a lot of tutorial with X-Code but nothing seems to work
Getting Failed To Load Image error, cant understand why!
Hi, I call an image stored in Resources/images/about.png via this code: var aboutImage = Ti.UI.createImageView({ top:0, left:0, image:'../images/about.png', height:430, width:320 }); win.add(aboutImage); but I get this error: [ERROR] Failed...
Correct way to load other pages ?
Hi All New to titanium and trying to get my head round the way it links to other pages etc. Ive created a basic 2 tab app.js with a coverflow on the first tab. This works fine. The coverflow iterates through an image folder and displays the images. I...
noob need help for correcting my code about XML_RSS
hi, I tried to make a rss application. For learning purpose, i simply copy and paste from kitchen sink to a new project to see how its work. i made a lil modification by created a window and changed Ti.UI.currentWindow.add(); to win1.add(); but it didn't...
How to create java module for Desktop
Hello, I'd like to create a Java module which I call from a Titanium desktop app. Can I find some doc, tuto, a sample for it? (I know there is doc for android and iPhone, but I'd like for Java for desktop) Thank you, Alban
Option Menu in 1.4.2 Not Working
why doesn't this work? The only way I can get a menu to work is if I create the menu in a .js file associated to a window ~~~ win2.addEventListener('open', function(e) { win2.menu = Titanium.UI.Android.OptionMenu.createMenu(); Ti.API.info('menu '...
Updating Table on window focus
I have a Tab based app where some windows use a Tableview getting refreshed using windows focus. In the focus function i am using "appendRow". My Problem with this approach is that every time the same tab gets pressed the screen flickers, before...
Is facebook session proxy required?
Is it a requirement to use a facebook session proxy? If you dont what do you not gain? Can someone give an example that doesnt use the FB session proxy?
Howto create larger Desktop osx toolbar / titlebar
I'm been trying to figure out how Titanium Developer itself creates the expanded titlebar in OSX (where the New Project/Import Project buttons are, for instance) as opposed to the default titlebar. I'd like to put my own button menu in that titlebar, but I...
Proper way of opening, closing, and reopening a window
What is the proper way of opening, closing and reopening a window. I currently have it as below: `app.js` ~~~ win.open(); ~~~ `win.js` ~~~ win.close(); ~~~ `Called again in app.js` ~~~ win.open(); ~~~ When the window is opened the 2nd time, I run into...
How can I score some Appcelerator swag?
How can I score some Appcelerator t-shirts, hats, and other invaluable goodies?
setTimeout works fine on emulator but not on android device
Hi, All I am doing is setTimeout(function() { alert(1); },1000); I see alert on the emulator but not on the device. Is there any setting that we have to set to get this working on the device? Thanks in advance
Ti.API info and debugging not working under mobile SDK 1.5.x?
I've been trying to use Ti.API.debug and Ti.API.info to show up while running the Android emulator, and just FINALLY realized that it won't work under mobile SDK 1.5.0 and 1.5.1... once I compiled my code (as well as KitchenSink) under 1.2.0 mobile SDK,...
Versioning
In Titanium I can pull the version number assigned to the app in Titanium by calling Ti.App.version. However, I've noticed in XCode the app version is exactly what I want, being something in line with 1.0.timestamp Does anyone know how I can pull that...
Android Picker Column
Is it possible to get the index of a column in a multi-column picker? I know how to get the value just using: ~~~ e.selectedValue[0] ~~~ //Assuming I want to get the selected value from the first column in a multi-column picker. That's straight from the...
1.5.1 - Android - JSON.stringify fubard?
Hi All, With droid on 1.5.1 the stringify function seems to be returning inconsistent results. Everything works as expected with iphone. Anybody else seen something similar? Thanks ~~~ var r2 = JSON.stringify( {'0':'asf'} ); Ti.API.error("Rest...
setTimeout on Android
I have three windows in my app that are located in the same js file. The first window (win1) starts opened. The other two are closed. On the second window (win2) I tried to place a setTimeout script: ~~~ setTimeout(function() { Win2.close(); ...
Creating dynamic options in optionDialog for iPhone
Hey you all! First of all I would like to thank the team behind the Titanium platform. I have some apps out there for sale and I wouldn't been able to accomplish that with Objective-C. Now to the problem... I am looping through the phone numbers when a...
Strangest thing happens with titlebar on non tabgroup app
Hi If I create a window in the app.js file directly I can't seem to get the titlebar to show at all. If I create a tabGroup it will show. What is this? It didn't seem to be this way in Mobile SDK before 1.4.2. Anyone experience the same thing?
Apache License App Distrubition
Hi, I am a little confused with the Apache license. When my app is ready to be submitted to Apple, is the same license applied to it? Thanks in advance!
JSS - class based formatting
I managed to get app.jss work for id based formatting, but not for class based formatting. ~~~ var x = Ti.UI.createLabel({id: 'test',text:'some value'}); var y = Ti.UI.createLabel({text:'some other value',className:'myStyling'}); ~~~ And app.jss is...
JSS global.jss location
where is the proper location of global.jss? I cannot get this to work at all not matter where I put the file.
Impressions of Titanium - is 1.5 buggy or am I off base?
I am fairly new to Titanium, but an experienced developer in Java, and have developed native apps for the Android and iPhone. I have been looking for a better solution than writing native apps on each platform, and evaluated Appcelerator Titanium and...
Detect when a popover is closed
Hello all, I'm trying to figure out how to detect when a popover is closed by losing focus so I can change a button's background. I've tried adding a listener to the main window for focus, tried adding a listener to the popover for blur and no luck. Any...
window.open() and window.close() too fast
I have an issue where my window starts stacking if I open and close it too fast. Its like the same window starts duplicating itself on top of each other. I am calling the open and close method through a custom event that lives in app.js: ~~~ var...
Menus in Android 1.5.0 / 1.5.1 does work.
Just wanted to share how to set up menus in Android on the last SDK's 1.5.0 and onwards. Introducing menucreation on the activity from 1.5.0 onwards, it can sometimes be unclear how to make it work. Especially if you run your applicaton in the app.js...
Easy way to select group to save contact to.
I noticed in the kitchen sink that there is an example of viewing/saving groups as well as how to save an individual contact with a lot of detail, but what I need to know how to do is to specify which group I am saving a detailed contact to when using...
Android probelm with HTTPClient
I'm porting my iPhone app over to Android and am having a problem with the HTTP Client. Here is my code: ~~~ win.refresh = function() { activity.show(); var loader = Titanium.Network.createHTTPClient(); loader.setTimeout(10000); loader.onload =...
createHTTPClient drives me crazy.
Hello, in my previous question, I had problem using web services from Viadeo. So I decided to switch to Photobucket ~~~ REST Request Format The Photobucket API uses Representational State Transfer (REST) for requests and responses, so that domain-specific...
Opening links in Safari
Hi Guys, Ive got the following webview: ~~~ var webView = Titanium.UI.createWebView({ height: 'auto', width: 'auto', backgroundColor:'transparent' }); ~~~ That is populated using ~~~ function getBuzz() { xhrText.onload = function() { ...
Android Geolocation (getCurrentPosition) don't work
Hello everybody, Like I say in the title, the function getCurrentPosition always return me the error : "Location is currently unavailable code: 2" I try on emulator, on device with Kitchen Sink and with my app. I have the Titanium SDK...
FYI - 1.5.0 HttpClient sync call borken
Hope it saves someone else some time, but synchronous calling using the HttpClient is borken in 1.5.0GA. The application just quits. Going to 1.5.1 works fine.
iPhone URLs Scheme for Twitter app?
Hi, I'd like to be able to create a button in my app to open the Twitter application with a profile showing up. I found this: > tweetie://something It used to work with Tweetie to post messages but I just want to show a profile, is that possible? I...
Database? Where is the Database?
Hi, When i do this: ~~~ db = Titanium.Database.install('dataapp.sqlite', 'contacts'); ~~~ for the first time, titanium understands and i have a database. But if i change the database 'dataapp.sqlite' like adding another table, it seems that titanium is...
Android: Transform
I think that even after Titanium SDK 1.5.1 (which supposably implements animation for the Android platform), transform still doesn't work properly. If you use it with an animation like here ~~~ var t = Ti.UI.create2DMatrix(); t = t.rotate(10); var a =...
Showing 38,351-38,400 of 47,504 1 … 763 764 765 766 767 768 769 770 771 772 773 … 951