Community Questions & Answers
Align text to top of label?
I am making a custom table row, and need a title and a caption. I created a view, set its layout to vertical, and positioned 2 labels in it: [pastie here](http://pastie.org/2422408) Although it worked as expected, the text in the caption label is...
iPad appicon - failing validation
I have placed 2 files in the resources\iphone directory - appicon@2x.png 114 x 114 appicon.png 57x57. Where do I put the iPad appicon.png 72x72 file? The application is failing validation because I am missing the iPad appicon.
Global window background image
I want to set a background image across all windows in my app. So in my app.js I do Ti.UI.setBackgroundImage( '/images/background.png' ); This works great on the simulator but when I deploy it on my iPhone 4 I just get a black background color. I have a...
Using a £ sign in a label causing error
It took me a while to figure out why my App was giving me the (Cocoa error 261.) NSStringEncoding=4 etc. Eventually tracked it down to being one of my labels that I was changing the text to say £20. Using the £ sign causes this error. Is that...
How to preserve the application settings in one session
Hi all, i have two pages one win.js and another one is setting.js On win.js there is a toolbar which contains the button for setting page. On setting page there is a toggle button as F/C. i just want to preserve that which toggle button was last selected...
I was led to believe I could develop iOS apps under Windows?
When I launch Titanium Developer why does it say; iPhone SDK not found? Obviously I can't get the iPhone SDK under Windows, so it makes sense, but how to I go about signing the apps and building them under windows to test on an iDevice?
need a litle bit of help
ive recently been shown how to strat codeing useing php and ive downloaded titanium but im not sure if i need anything else as im on my laptop not my friends computer and he has all the infomation and i was wonderin if anyone could help me. much...
Use an intent filter to open app from weblink
Hi all, I would like to have a link on my company's mobile web page that when clicked would open or app (if installed). I found a solution on stack overflow which requires the use of the AndroidManifest.xml ([Launch custom android application from android...
BackgroundGradient in simple tableViewRow
hi, I am trying to set a backgroundGradient to a row using this code: ~~~ _data[dS].backgroundGradient = {type:'linear',colors:[{color:'#EAEDEE',position:0.0},{color:'#BABFC1',position:1.0}]}; ~~~ But only the part left of the text and to the right with...
how can hide default cursor in the textarea in titanium?
Please share me how can hide default cursor in the textarea in titanium?
Second app in store!!
Hi, Just wanted to let you all know, my second app is in store. This one is also made with Titanium Studio! [http://rs.gs/iWeer](http://rs.gs/iWeer) Now working on third app, and hope in september the fourth app. Thanks for the right tools and...
how to make same display image and text in portrate to landscape
hai everybody i am developed one application using titanium studio with android sdk. i am using HVGA screen size in android 2.3.3 version. In my application developed only port rate size only, after i changed landscape also. But not showing same text and...
Need help in Font size increament with screen resolution
Hi, I am working in Titanium mobile 1.7.2 SDK, android 2.3.3 environment. I've used the percentages for aligning the controls in screen resolution issue. the controls are now working efficiently though the screen resolutions changes, but the font is still...
DESKTOP API - Open new html file on currentWindow?
**This is about DESKTOP API** What I want to do is very simple but I have not managed to do it. I have made a menu using "createMenu()" and I want by clicking the Items to open a different html file from the resources folder to the...
Where Ti.App.Properties gets stored? Can I use it as a database to store about 80 string sentances?
Hi, I want to store some questions and answers(approximately 80) regarding an application. It should be editable also. Storing in custom plist is a better option, but I didn't get any documentation about that. In appcelerator wiki I found one local...
Resources$NotFoundException
Android app crashes with the above error. It was working ok for all devices except the smallest screen size. I have now started re-sizing images for the different density folders and i get this message for all devices. The app works fine in the...
Label crashes since 1.7.2
Were any changes made to LabelView? In 1.7.1 everything runs fine but when compiling with 1.7.2 I receive the cryptic message ~~~ 2011-08-24 10:30:08.616 Test[2800:6803] -[TiUILabelProxy characterAtIndex:]: unrecognized selector sent to instance...
Android and SDK 1.7.x - Webview evalJS and fireEvent in local html do not work (crash the app)
Hi all, I've been testing my mobile app (in iOS and Android), and I found that several important functionalities with WebView in Android do not work. For example if we do `webview.evalJS('alert('hello, world');');` the application completely crashes...
Animating / Transition a Label?
I know you can animate windows to slide in etc. - usually on open. But is it possible to do the same with labels? At the moment I have labels simply switching from .hide to .show so it would be nice to get some sliding/fading action going on.
Why use: X === True or X !== True, instead of regular == or !=
Title is my question, just wondering about a while back before summer. Now i got back into tita using the TiDev community and what i see is that the code editor there gives an explanation mark if i use the == operator and should use === instead But this...
Generic solution for Picker
I am currently stock on this: The way the picker behaves on android/iPhone is totally diff and I am force to redesign the UI and still no solution that would atleast comes close to having my apps look-a-like on both platform... does any one knows a...
Add label to the current tab
Hi, Can we add a label to the current tab, my requirement is to add facebook user name on the right corner of current tab. Could you please give me some suggestion or code. I have tried this. function...
Is there a ressource for finding out the most widespread android device screen resolutions?
I'm looking for some satistics concerning the divulgence of various android screen sizes. My goal is to find out what screen resoiultions for android devices are the most popular within the last year in order to design my layouts accordingly. Any...
Import using git
when im import any project using get i cant run it !!! anyone have any clue why ?? the button is just disabled & there is "*" before the project name & " Master" after it
New iPhone Project Will not Compile and Run
I am getting the following error on a clean build for an iPhone mobile app. error: expected expression before '@' token error: missing terminating " character The only thing I had done was fill out the tiapp.xml. I realized that I had used a...
ant run (run on device for module dev)
how can I get "ant run" to target my device instead of the emulator for module dev?
HTML5 Video performance on Desktop App
Hello, Im developing a desktop App that is build entirely with plain Javascript. I use Titanium Desktop as a browser engine. All works quite well, exept the videos (H.264 with HTML5 video-tag). The size of the videos is quite small, but the playback in...
How to ensure specific devices are supported by my app in Android Market
Hi, I have an app that runs on many devices, but my customers are telling me that when they try to download it to a Samsung i9100, which I believe is a version of the Samsung Galaxy S II, the Android site says it is not compatible with the device. I can...
Can't create keyboardToolbar
Hi, I've just started playing with Titanium and like so far. I have one problem though. I'm trying to do a keyboardToolbar, but just can't get it to work. I'm using the exact same code as the textfield_toolbar.js (copied the file into my project) but it...
facebook addeventlistener not capturing login event
Hi, The login event is not captured in this code (the ti.facebook.addEventListener is never executed) : ~~~ Titanium.UI.setBackgroundColor('#000'); Titanium.Facebook.appid = "#####"; Titanium.Facebook.permissions = ['publish_stream',...
Read image data to send to server
Hi, I'd like to read image data to create my own http request, using boundaries and such. I read the content of the image file like this: var fileStream = Titanium.Filesystem.getFileStream(filepath); ...
Desktop PHP not processing
I'm trying to get into development on the desktop version of Ti. I cannot get any PHP examples to run, I've tried different way to just print out the phpinfo page: From [IBM...
Export Titanium Mobile Project to Objective-C for xcode?
This might be a dumb question, but I am wondering if it is possible to take an existing Titanium Project and export all the JavaScript into objective C that you can then import that into an Xcode project. I know that you can use a module in a titanium...
Titanium Mobile Web SDK
Does anybody have any information on the release of Titanium Mobile Web SDK?
Android Tablet wont draw all views
I have this interesting issue. When loading a series of vies (usually 4) on the screen one after another, the last one will often not be drawn on the screen. Yet if I have added labels and buttons to the view, they will show up with out the background...
facebook authorize and loggedIn status
hi, shouldn't checking the loggedIn status also check if the app is authorized on facebook or not? for example, say i login with facebook on my app then i go to facebook and deauthorize my app. if i go back to my app it should ask me to authorize again...
Get Content-Length of image to upload
I'm working on uploading images to my server, but due to mod_security being enforced, I can't send a basic xmlhttprequest with post without sending content-length as a header. What's the best way to do that?
Why won't the retina (or regular) image load in iPhone?
~~~ var imageView = Ti.UI.createImageView({ top: 0, left: 0, image: '../images/actionbar/actionbar_bg.png', height: 70, width: '100%', zIndex: 1000 }); ~~~ I get the no image icon when I run in iPhone. My folder structure is...
https doesn't work on Titanium mobile?
Hi, I have a question about ssl and Titanium. As specified in a few posts, I use an address like 'https://foo.com' tu enable https in the `open` method of my httpClient (`xhr.open('POST', 'https://foo.com');`). When I use...
SQLite Equivalent for last_insert
How do I get the last row that was inserted in to a table in SQLite? My Google'ing seems to show that SQLite doesn't have a similar function, but that doesn't seem right. Any ideas?
Delete row from table problem - row deleted before confirming
Hi, I have this issue deleting a row from a table. With the code below: ~~~ tableView.addEventListener('delete',function(e) { Titanium.API.info("row myid = " + e.row.children[1].text + "deleted - row="+e.row+",...
Titanium Studio updated - can't create new projects
I just updated Titanium Studio .. I'm at version: Titanium Studio, build: 1.0.5.201108230715 .. on mac OSX Lion When I try to create a new mobile project, I name it, supply an app id, click next, don't choose to use a template, and I get an error (below)...
Titanium SDK 1.7.1 - Where can I find this?
I'm looking to track down an old SDK and install it in Titanium Studio. Where would I find Titanium SDK 1.7.1 to install?
Change the way Android formats POST data?
I have an app that I'm currently working on porting to Android. In it, it's running an XHR request that posts data to a server that I have no control over. On iPhone, that request works just fine, because iPhone sends it in the query string style format...
Blank Emulator screen
i face a problem with Android emulator each time i lunch the same code run over iphone fine, but at android emulator the emulator just run with no application at phone desktop i try all kind of Android SDK with the same problem :(
Q&A's sort backwards
When doing a search on these Q&A's, the results are sorted from oldest to newest. Shouldn't it be the other way around? Kinda makes it harder to find relevant answers.
It's possible to convert xml Android gui ?
Hi It's possible to convert the code generated by "ADT" whit integrated visual gui Tool in Titanium UI element? Best regard
Android Notifications - How to refocus app when clicked?
I am creating an Android Notification via Ti.Android.createNotification(). When the user navigates away from my app (e.g. by pushing the phone's "Home" button), then pulls down the notification area to see my notification, and clicks on my...
Suggestions for Cloud Database code
I am interested in writing a database app using a MYSQL database in the cloud to save my data. I am fairly proficient with JSON and PUT requests so I'm looking for the easiest way to have a front end API to write to a MySQL database I setup to run in...
Eval problems with HTTPClient+PHP+and+MySQL Tutorial
Hi I am getting a syntax error on eval, source result false when it should be true it is in arrData=eval('('+this.responseText+')');. it states its a runtime error. please help the tutorial is...
Showing 27,851-27,900 of 47,594 1 … 553 554 555 556 557 558 559 560 561 562 563 … 952