Community Questions & Answers
change the version for upload it to Market
Hi I want to know how to change the version of my code Because every time I upload it to Android market it ask to change the version The problem I have is that every time I upload it I need to change it one version up for example V1 then V2 then V3 But if...
Simplified code for Image Drag and Drop for iPhone?
I am putting an imageView over another by setting its zIndex high. I just want to drag the 2nd Image on first image. How do I use touchStart and touchMove methods?
Resize and Upload Error - file not sent from .toImage()
Hi, I'm trying to resize and upload a photo taken from the phone's camera, but am coming up against a bug. In the code below, nothing is arrives in the $_FILES array on the server for some reason. If I send pic.media, instead resize.toImage(), it all...
Button hidden but working bug?
I'm using a navigationGroup with two windows to show up on top of a tabGroup. In the first navgroup window I have a "CLOSE"-button which closes the navgroup. When first opening the navgroup the button appears as it should but moving to the next...
Cant create project. Fatal pyton error.
Almost two days am trying to make a project. But with no success. I receive the following error. "Project creation failed: Fatal python error: Py_initialize: cant initialize sys...". Here is also the screenshot...
any idea why sqlite results show in simulator but not on device?
titanium wont recognise by adhoc profile so i'm doing a dist build in titanium and then opening it in xcode in xcode in the simulator (& sim in titanium) it shows the results from the database but when i install it on my device it doesnt show them -...
Back button from web view
Hello, Can any one tell me please that how can I come back from web view into local js file with same animation as per iphone (right to left). below code is working fine how ever the same close button I want to put on web view please advice. var b1 =...
Setting width of Image taken by Camera
Hi I used the code from the URL for enabling Camera feature and displaying it in Image View(Ref: http://developer.appcelerator.com/question/95431/imageview-load-photo-gallery--camera_. However it does not show Image in proper width and height, specially...
Facebook login button jumps out to safari
Hi I 'upgraded' my app from mobile sdk 1.5.x to 1.6.0 RC1 and converted my code to the new FB codes but when I clicked on the FB login button, it exit my app and goes to the FB web page for login. This is not what the kitchensink app is doing? What am I...
evalJS not working with passing variables
I am using evalJS to attempt to call a function in a webview and pass a parameter to that function. It will work perfectly if I pass a string but if I try to pass a variable nothing happens. ~~~ var calendarView = Ti.UI.createWebView(); ...
How to create a new window when clicking a button?
So I have a list. When I tap a row, a modal shows what I tapped and gives me two button options. I have scripted to have the "doh!" button open a new window that sources a info.js file. When I launch this app, it force closes. What am I doing...
Ploblem with Ti.include
Hello. I have problem with included files. Example: File: /Resources/CHIQ.init.js ~~~ alert('CHIQ.init.js') //.... Next me code ~~~ File: /app.js ~~~ // In this file i connect to remote server, and after connect, i used eval //... connect to...
Drag an Image over an Image
How can I enable dragging feature of an Image over another Image? Kindly provide helping snippet.
Android Runtime Error: Cannot read property "documentElement" from null
The following code runs great in the iPhone emulator. The Android emulator will load the app but gives the following error message. I'm a two-day old newbie to Titanium. I'm on all the latest releases having just installed things a few days ago. Any...
Is there a way to access the SMS database in iOS?
Hi there. As the title says... is there a way to access the SMS database in iOS? - Simon
Label with embossed effect?
The standard iPhone apps use this look: [Addressbook](http://imgur.com/ZVcKv) ...and I'm wondering if it's possible to achieve the same thing here.
Fire event when select tab
This should be simple. (1) app.js simply opens 4 tabs/windows. - Code for one of the tabs: var win2 = Titanium.UI.createWindow({ url:'main_windows/tab2.js', titleid:'tab_2' }); var tab2 = Titanium.UI.createTab({ title:'Tab 2', ...
Achieving crisp fonts like in iPhone Addressbook
Hi, I'm trying to figure out how to get fonts to come out like the Addressbook app: [screenshots](http://imgur.com/a/XfZdc) You can see that my text is fuzzy, but the Addressbook's is sharp and clear. Has anyone tackled this?
Facebook GraphAPI,unrecognized selector sent to instance
I get an error even with a full rebuild too..unrecognized selector sent to instance This happens when I use a Facebook GraphAPI and on the callback function. any ideA? is this a bug?
send label text from Table to alert dialog box
Hey everyone, So I'm still toying with Titanium and loving it. Now that I have these labels in the table rows, how do I use the alert dialog box to display the text? Currently what I have shows "Undefined". ~~~ var win =...
TabGroup position
Hi, Is there a way to place the TabGroup at the bottom of the page instead of the top? No matter what I try, I can't change its position, or even its height/left/top parameters.. it seems like no matter what I try, it just stays at the same place. This...
Returning longitude and latitude from address input?
Hi, Can you return longitude/latitude from a textField? I'm trying to allow the user to do radius based searches off our database, but need to pass long/lat to my php function to return the correct results. Thanks!
doc.getElementsByTagName returns no elements for particular document
Hi, I am trying to extract a string from some XML that i get from a webservice. I am using the same code for other XML documents and it works fine, but for some reason i don't understand it doesn't work for this particular document. It works perfectly on...
Changing splashscreen (Default.png) to Default.jpg
Is there a way to change the splashscreen load from Default.png to Default.jpg? The size difference is 200kb vs. 20kb and I'd like to keep things minimal! Thanks in advance, Best, Walker
how to change mouse icon
Hi How could i change mouse cursor(icon) in a desktop application using Titanium? for example when user move mouse over an image, i want to show a custom icon for mouse cursor. do i need use css or javascript to do that? thanks.
Now to detect camera on iPad / iPad2
I want to add a functionality to my iPad app, now that the iPad2 has a camera I need to detect with the device has a camera and then offer a option to take pictures, like in the case of the iPad2. And for the iPad 1 I will offer only the upload from the...
Entitlements are not valid
I just don't get what I'm doing wrong. Testing on my phone or distributing all bails telling me my Entitlements are not valid. I'm working around the " Resources" bug by duplicating my "Resources" dir and making sure...
createScrollView with layout:'vertical' still scrolls horizontally
Hi, I am trying to use the following code to create a rounded box with a textField in it. When the text field is focused, I'd like the window to scroll up so the input field is visible - but not to scroll horizontally to center the input. I thought I...
Can't set backgroundImage for tableViewRow?
This is on iPhone. I'm trying to create a custom tableView, so I use this: EDIT: not just for tableViewRow, *backgroundImage* isn't working for anything. window.backgroundImage, view.backgroundImage... ~~~ var data = []; var row =...
Background webservice notification example (gist)
Not a question, just something you mind find useful. I had thought that network activity was not possible from a 'paused' app in the background. However, I'm happy to say that it does work. (For now) Think of it more like a 'pull' notification rather...
backgroundImage not working on new Window.
It's on iPhone. I am creating a window with this: ~~~ var w = Titanium.UI.createWindow({ url: '/Views/WinNewProj.js', backgroundImage:'/Images/Background.png' }); w.open({modal:true}); ~~~ But the new window comes with a...
Android Apps don't Fly on Android Marketplace - Key parts missing
It appears the latest Ti release is incomplete. (Mac OSX) I'm able to compile and run android apps on a device, sign and package them (following this sites instructions to the t.) and they fail to work when packaged for the android market. We've had...
Google Adsense and Android
Okay, I give up. I have had 4 different Google Adsense accounts disabled, and have narrowed it down to Appcelerator Titanium being the issue. This time they said it is because I am using IFrames, which I am not, but apparently when using WebViews, it is...
tab group disappear
Hi, i have the first window with a tab group of 3 tabs. i read data from xml and display them in table row and when i click on item. ~~~ row.addEventListener('click',function(e) { var winArticle =...
Styling of TableViewSection
I've made a TableView where I add 2 sections separately, but I want to style the sections and it won't let me. I've tried the documentet way and tried the solution in this question:...
How to do multiple JSON calls on the same page? Please help!
Hello! I am rather new att Appcelerator and I am trying to develop an app that receives information from an API. On a page I want to make multiple calls to the API with the createHTTPClient and then display the results from these calls onto the page in...
Accessing filesystem with php or js (desktop)
I want to make a very simple desktop app that displays a list of files in the users document folder (OS X). I have made a html5 + css3 layout for the listing. Thats was the easy bit. Now I have to write some code that looks in the document folder and show...
textinput background fade effect
Hi. Does anybody know how to implement fading while input element is focused? Almost any input element in Apple's applications generates this effect - background becomes dark if input is focused. I use ugly hack with changing transparency of additional...
1.7.0 searchBar not firing focus event
~~~ var search = Titanium.UI.createSearchBar({ showCancel:false, }); search.addEventListener('focus', function(e) { Ti.API.info('focus'); }); ~~~ This works fine in 1.6.0 but not in 1.7.0
UI.TableView "Editable" customisation.
Hello, I currently have a UI.TableView with entries and the Editable flag set to true, this enables the swipe-to-delete function which I am fairly happy with. Is there any way to customise the label on the "Delete" button or add extra buttons...
Impossible to test on device after installing xcode 4.
Impossible to test on device from titanium, after installing xcode 4 have you the same pb ?
Loading external DLL's ?
Anyone aware of - if Titanium Desktop is able to load external dynamic link libraries? (.so / dylib / dll) ? I've searched through the docs and Q&A's but can't seem to find anything.
Is CDATA ignored in the Locale resource XMLs?
I am trying to make an app that has an & in the locale files and the compiler pukes unless I html encode it with %26. Is this a bug?
class detection for Ti.UI objects
This seems like a naive question, but how do I detect the class of a Titanium UI object? Let's say I have an event e and e.source is the UI element that triggered that event. How do I tell if e.source is a Ti.UI.Label or a Ti.UI.ImageView?
Possible to appendRow to the top of a tableView instead of the bottom?
I have just implemented the Pull To Refresh feature in my app. The only problem I am seeing is that the new appended rows using `tableView.appendRow(row)` are showing up at the bottom on the tableView. I need them to append to the top of the tableView. Is...
update DOM incrementally during loop, not output all in one hit at the end...
I'm using python with jquery to output a loop to the dom using "append", but the output appears in one hit at the end, not incrementally during the loop. Here's a simple example ~~~ countdown = 10 while countdown...
Possible to animate sliders as I set their value?
Hello, Is it possible animate the movement of a slider? A simple mySlider.value = 123; yields the slider snapping to position - I'm looking to animate that process. I've tried several things without success. I wrote my own function and it works but it's...
App in emulator crashes
Recently my app started crashing in the android emulator on two different computers and the kitchensink will not install with the error: Failed installing com.appcelerator.titanium: pkg: /data/local/tmp/app.apk This occured after I updated via SDK...
How would you handle submitting the same app twice (with ads & without)
I'd like to offer a free version of my app with iAds and then offer another one for $.99 without iAds. How would you deploy this? Is this is what the Appstore toolkit does? New territory for me here so looking for someone who's done this and took the...
It wont build
Installed, detected iOS SDK, and if i try to build it it shows this: ~~~ Traceback (most recent call last): File "/Library/Application Support/Titanium/mobilesdk/osx/1.6.1/iphone/builder.py", line 1276, in <module> main(sys.argv) File...
Showing 35,451-35,500 of 47,681 1 … 705 706 707 708 709 710 711 712 713 714 715 … 954