Community Questions & Answers
Adding a view to a view clears out vars. Weird glitch.
Titanium 1.6, iPhone SDK 4.2 Done this 100 times and now it wont work. When i add view1 to container, i can't get the var "backer" from container. Comment out: 'container.add(view1);' and it will work. ~~~ var win =...
Memory Warning Blanks App
No matter what view I am on while on the iPhone device. Whenever I receive the following: ` 2011-02-08 23:07:16.750 TestApp[6111:307] Received memory warning. Level=2 [INFO] Due to memory conditions, 0 of 0 images were unloaded from cache.` The window...
xhr (HTTPClient) returning a java.null.pointer exception
Dear community, I have a problem with an XHR (`var xhr = Titanium.Network.createHTTPClient();`) returning a "java.null.pointer" exception. This seems to happen only on some websites that don't like the "XmlHttpRequest" but prefer a...
Finding a Titanium Developer for Mobile Apps?
I don't really know where to look so I will post a question. We are looking for a mobile developer for Titanium. Are there any good places? My company (moyostudios.com) have been developing apps for 3 years now, both internal and for clients. We look to...
How do you make multiple paragraphs in a single Titantium.UI.Label?
I'm wanting to create a label with multiple paragraphs. Can i do this in a single label or do I need to make a label for each paragraph?
My Lessons Learned (so far)
A lot of very helpful people on this forum have helped me get through some challenges and I feel I'm gaining some momentum building out my app. I thought it would be helpful for me (and maybe others) to document my "aha" moments. Here is a...
SQlite not returning anything
var dbinstall = Titanium.Database.install('test.sqlite','test'); var db = Titanium.Database.open('test'); var rows = db.execute('select * from test'); Titanium.API.info(rows); There are 43 rows inside of the test db inside of the test able, yet nothing...
Appicon not showing up in Simulator no matter where you store it
Hi guys! I created a nice appicon.png and put it in the Resources/iPhone location, but it's not showing up in the Simulator. Similarly, I tried putting it in the build/iphone/Resources and that didn't work either. I took another thread's advice and...
Is it possible to export activites in Titanium apps so they can be launched by other applications?
Using java, it is possible to export an activity so that other applications can launch it using an intent. I have successfully written an activity in java, exported it in AndroidManifest.xml, and then created an intent to launch it from a Titanium...
createWebView Works fine on iPhone, but not on Android
I am on Android 2.3. If I open a browser and point it to the url in question, then all is well. If I use my app to point it to the same URL then everything is out of proportion. It is almost like it is not using the correct browser or...
Hello World Android app won't start in emulator on Fedora Linux
I have been trying for a couple days now to simply run a standard, unmodified new Titanium Developer Mobile project in the Android emulator. I have followed the getting started instructions closely, and everything seems to work as expected up until a...
Running drillbit's tests
Hi folks, I've had no problem building and running drillbit, but all it shows is "0 Passed" "0 failed". How do I get it to actually run the tests? Even specifying the testing dir from the command line and specific tests seem to not do...
Performance of HttpClient (part 2)
Sorry, I accidently marked the original thread, http://developer.appcelerator.com/question/110071/performance-of-httpclient , as answered (and can't find a way to unmark it). To follow up, even with local testing the timer shows almost 2 seconds when the...
Error: Xcode is not installed. It is required for Iphone. On: OS X 10.6.6 + Xcode 3.2.5 64bit + iOS 4.2 + Titanium Developer 1.2
I installed Titanium Developer 1.2.2 on a Mac Book Pro with OSX 10.6.6, Xcode 3.2.5 64bit, iOS 4.2. Titanium Developer downloaded and upgraded to Titanium Mobile 1.5.1. I received this error when I try to create a mobile project: Xcode is not installed....
How can I know the windows I opened in a Navigation Group navigation?
Hi, How can I have a reference to the parent view when I use navigation groups? i try to explain: when I am in a navigation group I can open the first window, then the second, the third, and so on... using back i can close the third, then the second...
Impossible to "Company Name" or "Organization Name" of contacts
Hi I would to get "Company Name" or "Organization Name" of contacts those are stored in iphone address book. And it doesn't works (it works for fullname, departement, ...) How to do ? Thanks >>>> it works with 1.6.0 !!!!
Tip on Link to iTunes Store - Author instead of product
I wanted to add a link into my app that linked to other products that the company has. This is done using the viewAuthor parameter, this way: http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAuthor?id=xxxxxxxx&mt=8 It works and I hope it is...
my App got rejected. Help needed
Hi My app got rejected and it got rejected because it gets crashed when a button is hit to open Email Dialog. I am using two buttons, both for opening Email Dialogs. I am mentioning the URLs of both my code and Crash files as I am not being able to figure...
receive and display array multidimensional
Good nite, I'm tring to receive some data in a multidimensional array, and put it int a table view. here is the php code in the host: http://pastie.org/1542148 and here is my js app code: https://gist.github.com/817096 I think the problem is in the app...
mapview not receiving events ... any help?
var win = Titanium.UI.currentWindow; var groups = win.groups; var pos = Titanium.App.Properties.getList("userPos"); var lat = pos[0]; var long = pos[1]; var mapview = Titanium.Map.createView({ top:50, mapType:...
Tableview performance on Android
I have a very simple example of adding 25 rows to a tableview and its taking almost 3 seconds on android. I've tried a few things and nothings seems to positively impact performance. The example code can be found here: http://pastie.org/1541974 Is there...
How to trap database errors?
How do you go about catching db errors? I tried using a try-catch but it doesn't catch the error. The app just crashes. ~~~ try { var db = Titanium.Database.install(dbPath,dbName); db.execute('bogus sql code to fail'); db.close(); } catch...
Tableview SeparatorColor Not Changing?
My application temporarily requires hiding tableview separators. On iPhone I can use the separatorStyle property, but Android I have to adjust the separator color. For an already created & displayed table, I set the separatorColor to transparent and...
Drop Shadow under Navbar
I am trying to get a dropshaow effect under the navbar. The example is in the EBAY Corporate app... http://www.appcelerator.com/wp-content/uploads/2010/09/ebay-ss1.png If this can be done I would appreciate some guidance. Regards
iPhone sdk on windows
Hi, Can I install iphone sdk on a windows based machine, to use it with titanium. If so then guide me to do it.
XHR Send Photo from Gallery - iPad 4.2
I am having trouble sending an image from the gallery in iPad. This seems limited to iOS 4.2 -- 3.2 works fine. After selecting the image, I attempt to send it through a new HTTPClient and immediately receive this error. ~~~ IN ERROR Error...
Android Emulator not visible
Hello, I recently installed Titanium and set up Android SDK in the process. everything went well until the preview pane in Titanium wouldnt display anything under the Run Emulator tab. Also I get the message 'This project is not configured to run in...
NavigationGroup : reload the data from previous pages
I want to know how to reload the data from my main page, which displays data from my database. The image below shows my problem: the user changes the lock time, and when he returns to the previous time changes in the line "Auto-lock". ![alt...
Android Distribution gives compile error
I the following error when i run the "Distribute" function (pity i cant attach an image): Packaging Error: Error in compiler. <type 'exceptions.NameError'>, global name 'error' is not defined; Traceback (most recent call last): file...
Dumping Strings, Int, etc. into a remote database?
So I am building an app and simply designing the frontend of it. But now I am needing to grab all the data that is being stored in the process of the app (Which is a bunch of Strings, Ints, and Images) and dump it all into a remote MySQL database. How...
Fading topbar button / Re-running script on tab button
Two (more) questions of possibly a simple nature! I'm currently testing on iOS. 1) I have added a button to the top bar on my initial window. Whenever I go back to that window the button fades in rather than appears on the bar straight away. The back...
Using Titanium.Platform.takeScreenshot
I'm evaluating using Titanium for a project that makes videos from browser based animations. I was hoping for a way to take screenshots from within the app for each frame. The documentation of takeScreenshot seems a little slim so I was hoping to ask...
Stuck getting started with Titanium on Windows XP and iPhone
Is it possible to create apps on Windows XP with the iphone 4.2? I'm having difficulties getting started here, someone please help!!
Get Directory selection from the user
I want to have the user select a directory from my application. Basically exactly what the Titanium Developer does when you choose your project directory. Can anyone help me with an example of this? I was using input type=file but to no avail. Thanks...
Performance of HttpClient
Hi, I have the following code instrumented with timers: ~~~ function doGPSSearch(latitude,longitude,shows,callback) { utils.time.start('GPSSEARCH_REQ'); Ti.API.debug('Call to doGPSSearch'); var xhr = Ti.Network.createHTTPClient(); xhr.onload =...
Looking for a Titanium Developer for Paid Gig
Hello.. I apologize if this is not the right area but I am looking for a Titanium developer to write a mobile app (paid -- not looking for someone to work for free). It is a port of one of our existing web applications into a mobile format. If you are...
Best practice for product versioning?
I need to start working on the next version of my app. Should I edit the version number in the project settings or should I copy the project folder, import into Developer and change the version? Also, does anyone see a need to maintain previous builds...
Box2d/Cocos2d
Hi, I'm trying to get an overview, if it's somehow possible to include a game(engine)? Would it be possible, to include a native Cocos2d game? I also thought to build one with box2dweb (http://code.google.com/p/box2dweb/), but it's much too slow on the...
Executing BASH commands
How can I trigger bash commands and also execute shell scripts from the SDK? e.g. In Xcode you can do " system(command) "
no 'select highlighting' while use of backgroundGradient (iphone)
hi. if i am using backgroundGradient an a tablerow it seems to overlap the 'select highlighting' or better that color changing if a row is selected. even if i set selectedBackgroundColor. do i have to code that myself if i use the backgroundGradient, or...
Auto Populate Facebook Login
Does anyone know how to autopopulate the facebook login module with a saved user name and password? Maybe auto login also with the fields populated. Do I have to dive into the Module itself and try and achieve this?
Add animation (fade in/out) to ScrollableView
I'm having trouble with adding animation fade in/out to the scrollableview. Where should I add the animation? ~~~ var view8 = Ti.UI.createView({ }); var m = Ti.Filesystem.getFile(Titanium.Filesystem.resourcesDirectory,'images/card8.png'); var l8 =...
Animate/Fade out Default.png image
I'm trying to fade out the Default.png after it's loaded, but it doesn't work. Any ideas? ~~~ var winWebView = Ti.UI.createWindow({ title: 'Gallery', url: 'gallery.js', navBarHidden: true }); winWebView.open(); var startupView...
Titanium.UI.Button.hide() is not working?
Hi, Titanium.UI.Button.hide() is not working in titanium sdk 1.5.1, but it is working fine in 1.4.2. Is there is an issue or such functionality removed in 1.5.1?
How to hide tabgroup or tabbar in Android
var win = Ti.UI.currentWindow; var tabGroup = Titanium.UI.createTabGroup({ }); var learnWin = Titanium.UI.createWindow ({ url: 'singAndLearn.js', barColor: '#000', backgroundImage: '../images/bg-2.png', titleImage: '../images/icon.png', tabBarHidden:...
className crash
Hi, I have a tableView (rows have the same structure/layout) app with a straight forward code: ~~~ for (var i = 0; i < items.length; i++) { var id = items[i].id; var title = items[i].titre; var row =...
Titanium and iPad simulator Kitchen Sink issue
Hi, I've downloaded kitchen sink with the iPad version, loaded the iPad version into Titanium, and when I click on "Test & Package" tab, the "Run in Emulator" window is just grey. Any idea why this is happening?
Table headerView and footerView
Using Ti 1.2.1 SDK 4.2 I have a table in the 'grouped' style and I'v have set buttons for both the header and footer views. Inside one of the table rows is a text field that when clicked opens up a keyboard for entering text. Nothing unusual here......
Associated files with my app, but how to open them?
In reference to a [previous question](http://developer.appcelerator.com/question/109901/associate-files-with-your-app) I was able to create the associations but turns out that is only half the battle. That same...
Add Poster Frame to Video Player?
Hey guys, I was just wondering does anyone know if you can add a poster frame to the Titanium.Media.VideoPlayer? Currently when the video is loaded and it hasn't been played yet it appears black. I would like to have a still frame or image there...
Showing 37,751-37,800 of 48,772 1 … 751 752 753 754 755 756 757 758 759 760 761 … 976