Community Questions & Answers
Email dialog: Focus on To: recipient immediately
I've set the To: recipient to blank. When the user taps on my "Email this" button, I want the email dialog to pop up and for the focus to be on the To: field so the user can immediately start typing their email. Is there a way to do this? I...
Refreshing a Window in Android
Is there a clean way to make a window re-render itself? I know you can close it and then reopen it, but I was curious if there was a way to do it that looked a little more "seamless."
Label Display Blinks when refreshed (1.5)
I have a weird display issue since 1.5 that I managed to fix but I would like to know if you also have it and if this could be a bug. Basically, when a page with labels is refreshed, the labels blinks before being positioned. it seems to go from an...
Application is not responding!-Using Google MAP
Hi,I am trying to use Google MAP and when I launched the application, I got the message that "Application is not responding!" Following is my code: http://pastie.org/1391331 I have already get the API Key from google and add the following...
Desktop notification setTimeout not working?
I have a simple notification set in a Desktop application, using the following code: ~~~ var notif = Titanium.Notification.createNotification(); notif.setTitle(title); notif.setMessage(message); notif.setTimeout(3600); ...
Webview-embedded HTML file can't send events to an associated script -- works in emulator but not on physical device
I have a case of a project that runs perfectly in the emulator but not on the iPhone/iPod/iPad _but_ only if I use a Titanium SDK _after_ 1.3.2. I submitted sample files to the bug site over two and a half months ago. As best as I can tell, the submission...
Creating a window from a button bar event
Hi all, I am creating a new window from a click event on a button bar. What I don't understand is that the Tabs at the bottom and the nav bar at the top do not show. Why does this happen and how do I correct it? <script...
installing titanium
- ok so I installed titanium 1.2.2 and it detected the iphone sdk on there but it keeps saying that its loading no matter how long i wait it emulates the iphone but I don't see app on the emulator - another issue I'm getting is that it doesn't seem take...
Android emulator build fails
After numerous attempts at building and viewing on a Mac 10.6.5 with Eclipse 3.6, ALL Android SDKs available, and the latest Titanium Developer (1.5.1) and Titanium SDK (4.2 for the iPhone and 1.6/2.2 - tested both for the Android), I am unable to run the...
Image in label
Is it possible to add an image into a label so that the text wraps around it? As in html: http://www.woutr.be/dump/Images___Wrap_Text_Around_-_HTML_Tutorial-20101219-223125.jpg Or should i use a way around it and just create 2 labels?
Clear notification automatically
Can I clear notification automatically? I want to show "Ti.App.iOS.scheduleLocalNotification", but I want to clear the notification without tap. I think I can use "Titanium.App.iOS.LocalNotification.cancel", but I don't know how to use...
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...
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...
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...
Question on Rotation Notice
Hello, why am i keep getting this message? Thanks 2010-11-29 13:56:22.826 APP NAME[12006:207] The view controller <TiRootViewController: 0x6821b90> returned NO from -shouldAutorotateToInterfaceOrientation: for all interface orientations. It...
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 '...
Facebook Graph - exchanging sessions for access_tokens
With help from another post, http://developer.appcelerator.com/question/21031/from-facebook-connect-to-open-graph I was able to connect to the Facebook graph and get access_token and able to run a test query to pull my profile information. This code...
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?
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
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...
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(); ...
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...
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...
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...
Current window closes if i add event listener to MapView
I updated to titanium sdk 1.5.0 today. After the installation adding an event listener (even if it does nothing, see below) to a MapView doesn't work anymore. The current window containing the map view closes if I click on an annotation for example. If...
Priority of events capture
Hi I have a window with a webview. I need to capture events like click, etc. using html and javascript inside the webview in the main window. However, the click event of the main window is always interfering with events fired from the script in the html...
Losing data in tableviews and map annotations within NavGroup
I have a iPhone NavigationGroup; the navgroup sometimes opens a tableView window and other times opens a Map window with annotations. When I click on the back button from either the tableView or the Map, then revisit either page, I lose the annotations...
Selecting Images from a Photo Album
Is there a way to acquire all the images within a particular Photo Album?
animate center
since 1.5(.1) the animate center method hasn't been working right. Regardless of the x/y set, the element will move to the center of its parent element. This makes it near impossible to animate anything with a view with a layout set (horizontal or...
Packaging for Mac OSX
Hi! When I package my app for the Mac OSX I always get the same version to download even when I change the code or give the app new version number. Anybody has any experience with that?
Background Audio Controls
Now that 1.5 has been released and it sports "Titanium.App.iOS.BackgroundService", can this be used to handle audio playback? It is nice that we have been able to play background Audio since 1.4, but not beeing able to stop playback without...
Android Webview Copy Link with Long Press?
Is there a way to enable the functionality seen with the brower where I can press and hold on a link and get the option to copy the URL or SHARE the url? I'm not able to get that to work with Webview within the emulator? Is it an emulator issue or does it...
Are events asynchronous?
I have an optionsDialogue with a tableview. When the option dialog button is clicked I run an event listener to process through the tableview - however it doesn't work. Based on debug it appears that each time I run I get different results (as if the...
Titanium Developer won't start
A fresh installation of Titanium Developer won't start, I get the 'Titanium Developer appears to have encountered a fatal error and cannot continue' dialog. Here are the contents of my tiapp.log if I run with --debug: http://pastie.org/1382654
Module with custom library
I'm creating custom module for iphone. How do I add several frameworks and also custom library in the module.xcconfig file? I put following line into module.xcconfig: OTHER_LDFLAGS=$(inherited) -framework AddressBook -framework UIKit...
Error on launch
Hi, I have just installed titanium and trying to build hello world project. I have only created an empty project and trying to build it but I am getting following error when I press launch button: [ERROR] Error: Traceback (most recent call last): File...
Traffic interception possibility
Hello, I'd like to create a desktop app which needs to intercept my network traffic. To be more precise, let's take an example. Let's assume I well know MSN protocol for instance (in reallity it's not msn but an application I've done, anyway the problem...
Override default tab animation
The default tab animation is from right to left. I want to make this animation from left to right. Is it possible. Please anyone help.
Retractable/ Spring Slider
So cool idea...I want to create a slider that is always set in the middle. When you move the slider right it positively changes a variable and with speed depending on how far right it is. when you move the slider left it negatively changes a variable and...
section.rowAtIndex(1); //Boooooom
whenever i use .rowAtIndex(1) method of the TableViewSection it crash the application, any explanation ? and i found that .rowAtIndex() with no argument grabs the first row only.
Using your own database in a Foursquare app
Could anyone tell me if it is possible to use Foursquare to display your own points of interest in an app instead of the foursquare venues?
apkbuilder is deprecated. Ti 1.2.2 mobilesdk 1.4.2 OSX
Okay I know some people have had this error before, but I just can't get around it. I was using it fine until it suddenly broke. doesnt work with both 1.4.2 and 1.5.0 tried it on two copies of OSX. reinstalled Titanium and Andoid SDK. no use. Any...
Suspend Sleep - How to use idleTimerDisabled syntax
Ti.App.idleTimerDisabled = true; From the docs ... how to use it?, with Ti 1.5 i get in the simulator the following error: [ERROR] Script Error = Result of expression 'Ti.App' [undefined] is not an object. at app.js (line 87). thank you Andrea
Custom HTML-Parser Module ?!
Hi, would someone be able to build a custom module for html parsing? What about this one? https://github.com/zootreeves/Objective-C-HMTL-Parser I would need a parser that can parse non-valid html and does not got problems with entities! Regards Marc
[ERROR] Error: Traceback and Android SDK
Hey folks, every time I get an error message if I push the "stop" button in the emulator. Like this: http://pastie.org/1379574 Also i can't install the Android SDK, e.g. for testing the KitchenSink Demo. If I choose the Android SDK directory I...
Solution: 1.5.0 and TableViewRow height
If you are facing the problem that height : "auto" doesn't work for TableViewRows since you updated Titanium SDK to 1.5.0, you might want to try the following: 1. create the row without height attribute 2. set the classname for the row using...
date picker value delivers null
the day picker value is null if "today" is selected. is there any hotfix or work around?
Problem with HttpClient in Android 1.5 SDK?
Hello, Has anybody had problems with HttpClient in the new 1.5 SDK? Because HttpClient on Android doesn't support cookies (like a jsessionid cookie) I've had to append `;jsessionid=abc123` to the end of every URL to get the server to recognize the...
Showing 6,851-6,900 of 8,629 1 … 133 134 135 136 137 138 139 140 141 142 143 … 173