Community Questions & Answers
even simplest TableView won't work
Hello people, I am trying to make TableView work, but even simplest example crashes. I must be doing something wrong because KitchenSink works. Here's the example: ~~~ var window = Titanium.UI.createWindow(); var data = [ {title:'Row 1', color:'red',...
Shorten URL send with createIntentChooser
I want to shorten the URL of the message i want to share. i am using "createIntentChooser" to select the client i want to use. If i use a twitter client somethimes the url is to long. how can i shorten this within my code? has anyone got an...
NoClassDefFoundError on app after install/download from Android market
Built and installed application on Android market. Downloaded to device and it closes upon startup. ~~~ NoClassDefFoundError: org.appcelerator.titanium.TiVerify ~~~ Has anyone experiences this?
Embedded PDF Viewer For Android
Just want to share this. Since android doesn't support PDF viewer, anybody can easily render pdf document by using google viewer service. For example the...
Nested JSON to Rails api
Hello, I have a rails api, which requires a user object, with an email and password for authentication. JSON serialization to the rails API does not seem to work. the inner object gets escaped. Looks like others have the same issue:...
Key board caps lock
It seems that by default a textfield capitalizes the first letter. How do I turn this off?
Parse multilevel xml file
Hi, I'm pretty new to Titanium Mobile and my XML and javascript are both a little rusty. Needless to say, I'm finding myself a little stumped trying to parse an xml file. I have an xml file like the following that I'm trying to grab all the values...
Textfield on Delete
How do I get notified when a user presses the delete button on a textfield?
loading image performance
hi i want to display loading (spinning, throbber) image while am i loading remote image. everything is fine, i got this working, but i found different ways how to do this and i would like to know, which one is the best in terms of performance. imagine...
Packaging Error iPhone Facebook
Hi I wanted to distribute my App for Ad Hoc but I get the following error: Here is the output: [Pastie](http://pastie.org/1557552) Is there something wrong with the Facebook AppID? Thanks Felix
Shortened URLs do not work with AudioPlayer
I get a shortened URLs of an audio file (mp3 and wav) (http://is.gd/....) When I try to play it the player crash with a SEGV. (http://gist.github.com/824240) Un-shortened links work. Loading it in an Android player works. I'm using 1.5.1 on...
animation functions?
Hi, I am looking for a solution for using mathematical animation-functions, for example a sinus-animation for a view. Can I somehow use the animate and matrix-stuff to accomplish this?
Converting HTML entities & lt; and & gt; to < and > in rss feeds
I'm using xml_rss.js in KitchenSink as an example and adapted to read a RSS feed from a custom feed via open.dapper.net. RSS Feed: http://bit.ly/gnmkPX The problem with the custom feed which I got from dapper.net puts the img tags (which I used as a...
separating table row
hi i would like to separate table rows by adding f.e. 10px transparent space between each row. i've tried borderWidth and borderColor (with same color as background - not table background but view background,under the tabel) on TableViewRow but it looks...
Detect when an iAd is clicked
I am trying to integrate iAds and want to detect if an ad is clicked. However none of the events I try to listen on works.. anybody out there who has got this to work? Code: ~~~ iads = Ti.UI.iOS.createAdView({ width: 'auto',height: 'auto',top: 0, ...
movieControlStyle versus mediaControlStyle & movieControlMode for iPhone, iPad
Mobile API docs at developer.appcelerator.com/apidoc/mobile/latest/Titanium.Media.VideoPlayer-object.html, say that movieControlMode is deprecated and that mediaControlStyle should be used. The use of mediaControlStyle produces NO results. ...
Catching HTTPClient errors on Destktop
I'm building a Titanium Desktop app and trying to use a `Titanium.Network.HTTPClient` from a worker to make requests to our web app. Everything works great when the server responds, but I can't seem to catch low level connection errors (such as...
TIP: Facebook Graph friends sort
Facebook GRAPH API currently does not allow you to sort your friend's by last name. A HUGE pain in the... Below is how I did it manually. ~~~ function sortByName(a, b) { //notice how I am sorting by last_name which is a special field var x =...
No STATE_STOPPED fired for AudioPlayer
I'm using 1.5.1 on Android. I load a streamed mp3 with the Titanium audio player. I'm waiting for the STATE_STOPPED to continue with my app but it is never fired (also no STATE_STOPPING). Last event I get is STATE_PLAYING. greets Daniel
iPad Design Help !!!!
hi ., i wanted to create a UI on ipad which has two views i.e. Left and right(ipad orientation -Landscape). The left View has a table kinda UI that conatains row kinda list items and the right view is an empty table view.. All i wanted to do is to let...
1.6 RC Border Not Working on Lightweight Window
Some 1.6 rc1 feedback. The following code produces a border in 1.5.1 but doesn't in 1.6 (rc1). ~~~ var w = Titanium.UI.createWindow({ ...
How to change the time of setInterval?
I want to change the time (at the request of the user), but I do not know how. Have you any idea? ~~~ // LOAD DB var db = Ti.Database.install('settings.sqlite','settings'); var query_refresh = db.execute(' SELECT value FROM settings WHERE...
Don't show Special character in Android
I'm writing an application for Android and iPhone and I need to print special characters like this here [http://en.wiktionary.org/wiki/Category:IPA_symbols]. They characters are printed in iPhone, but they aren't printed in Android. ~~~ var label =...
App always crashes when opening from Android Market
I have an app that uses the latest CI build on the 1.6 branch. It works perfectly in every situation, except when you launch it from the Android Market it says every time - "The application has stoped unexpectedly. Please try again." This bug...
Error loading preferences (Android's)
Hi friends, As my first try, I've started Ti Dev and, as suggested in the guides, created an testapp for Android (on Windows 7). Clicking "Launch" starts the Android emulator showing the phone but a cmd window shows error: "Error Loading...
Take a picture, save it then use in imageView - headaches
Hi, I am trying to do what a lot of threads on this forum seem to be asking. I am trying to take a picture then save it, then use it in an imageView. Simples. Here are the problems i get;- When i take a pic using the following...
Activity Indicator is crashing for no reason!
So every time I load up the window where I am creating an Activity Indicator object the app crashes, with no explanation. Here is the code and the stack trace. ~~~ var actInd = Titanium.UI.createActivityIndicator({ bottom:10,...
App showcase for desktop apps?
Hi everyone, I came across Appcelerator Titanium through the lovely task management application Wunderlist (http://www.6wunderkinder.com/wunderlist/) on iOS and Mac OS X. The current version of the desktop app still has some issues, but overall i'm very...
Facebook and SDK 1.6
I have downloaded the RC1 sdk and things so far are looking good for my app. Is there a way to create the Facebook button so that when clicked it opens in a webview instead of launching safari and putting my app into the background? I cannot see via the...
Mobile - Facebook.createLoginButton - Appears to login, 'login' listener not called on device
Hi, I'm using Facebook.createLoginButton() to log the user in. I'm using the apikey and the secret, not a session proxy (although I have tried that too and get the same outcome). On the emulator this works fine and connects as expected, the 'login'...
I need a save button
I have a tab group, in one of my tabs I have stacked windows which gives me a back button at the top of the screen. How do I add a save button to that bar at the top? I'm new to this, this is my first app so there may a different way to do this. I...
layouts for different sized screens
Is there a guide anywhere on what the best practices are for doing layouts so they will work on different sized screens? I'm currently using a window with imageviews for an app I am working on and am having a little trouble making it look good for...
SDK directory - Can't find it
Hello, I have download Titanium Developper on Windows and MAC and it does not install the desktop SDK. Thank you very much for your help Regards Salvatore
Access to iOS VoiceOver
Hi there ! I have a question about the voiceOver core functions in iOS devices : does Titanium have any built-in or any workaround, solution, to call this voiceOver from within an App ? Obviously I'm not speaking about having the global VoiceOver option...
invalid method
First off, I know when deleting the build directory, this should be fixed, and it used to work. Now, for some reason it doesnt. When deleting the build directory it works in the simulator, but when I run it on the device, it wont work. When running it in...
Facebook Like button
I am wondering if it is possible to add a "Like" button to a titanium iphone app? I want it to Like a FB page.
links broken in a webview
**UPDATE** If you are having the same issue, you can follow the ticket in the link below for a solution I've posted this in the as a bug already: https://appcelerator.lighthouseapp.com/projects/32238/tickets/2995-webview-link-doesnt-click but I was...
What to use for a large text-based article
Hi, Hopefully a quick question. I have a large piece of text to include (it's basically an article linked through from a title screen) and am wondering the best method for displaying on the iPhone. Label doesn't seem appropriate as it doesn't scroll. So...
Opening an already installed application.
If i would like to call an already installed application, how could i do that? Let say for example twidroid
Facebook Login Button Issue- Safari cannot load page because the address is invalid.
In the iPhone simulator, using Ti.Facebook.createLoginButton, when Safari tries to load this URL: "http://www.facebook.com/connect/uiserver.php"-- it gives me this alert box: "Cannot Open Page - Safari cannot load page because the address is...
Forcing Portrait in tiapp.xml
I've read a number of posts that show how to force portrait layout in Android via a custom AndroidManifest, then other posts that imply that this can now be done via the tiapp.xml. I've tried a number of approaches in tiapp.xml. Can someone point me to...
Android Crash
I have an App on the Android Marketplace, but whenever somebody runs it they get an error. They have reported it and [this is what it says](http://pastie.org/1554735) in the Android Developer Center, but I use Titanium so I don't exactly know what they...
Events & ActivityIndicator
I have defined events for showing and hiding the activity indicator. The event is registered to the app in the root context and is fired by other execution contexts. I can see that the event fires OK but the actual display of the activityIndicator is...
Help with email.Dialog.setMessageBody
Platform: iOS, Latest Titanium Version <br><br> Im trying to paste together a formatted message body from several App.properties strings. My problem is adding several strings together. The goal that im trying to achieve is:<br> Driver:...
Problem Dynamically Creating Image Object In Webview
I am having trouble creating image objects in a webview's javascript. For example, I would like to be able to do: ~~~ var image = new Image(); image.src = "pic.png"; ~~~ I am able to load pictures fine in the webview in the html (my images...
setTimeout doesn't work properly on Android
The following code works fine on the iPhone: //this is run after opening main window setTimeout(function() { Ti.API.info("Hello 1") },1000); setTimeout(function() { Ti.API.info("Hello 3") },3000); On Android only "Hello 1"...
Camera Overlay with problem
Hi Everybody, Today I try to use the camera functions in appcelerator on my iphone and i check that there's a problem when we use the overlay. The first image, before take the shoot, is stretched. Does also see this bug? anyone solve this...
JDK and Android SDK on Mac
First of all, I love this product!! I've been developing for Android, so far, and have everything running beautifully under Win 7. I received my new Mac Mini yesterday and am very eager to get my app working for iPhone, but am having difficulty finding...
How to hide the Popover when you click in the Navbar?
I'm using the SplitView example from the KitchenSink-iPad. I have a RightNavButton that opens a Modal Window, but the Popover from the MasterView stays visible. The Popover will not disappear when clicking on the Navbar. I can not find the object for the...
Touch issues with Tweetanium on Android
We really like the Tweetanium app - it seems like a great reference app for cross-platform development. Unfortunately though, we have found it doesn't work very well on an Android device. Touching tabs and buttons rarely work unless you super lightly...
Showing 36,551-36,600 of 47,726 1 … 727 728 729 730 731 732 733 734 735 736 737 … 955