Community Questions & Answers
Media Queries
Hi I am planning to make few educational apps for kids. I am interested to know whether Titanium can be used for this purpose because I would need following things for it: 1-Play sound in slow motion(just for kid to understand the accent) 2-Record the...
Netwrok not connected in xp
hello there, i m new to titanium and trying to configure in windows xp for mobile application (Android), have followed all the instruction but still unable to connected to network, i have set HTTP_PROXY & HTTPS_PROXY variables but it looses...
multi-byte string is garbled (UTF-8)(Android)
multi-byte string is garbled (UTF-8)(Android) Ti.Network.createHTTPClient.ResponseText is garbled in multi-byte string(UTF-8). In label, btn.title, Ti.API.info, garbled. ~~~ var xhr = Ti.Network.createHTTPClient(); xhr.onload = function (e) { ...
Facebook application removed and still authorized?
I removed the facebook application from my privacy setting, this should ask the user to login and authorize again. But when I launch the app in the emulator it says user loggedin , I call authorize(). am I missing something? or is it a bug?
Facebook Titanium.Facebook.permissions Problem
Hello, i was testing the Fconnect feature, I've tried using the KitchenSink facebook examples, but they dont work, also i've use some Titanium.Facebook examples from the API page, but they doesn't work either. The app just crashes. Does any one knows what...
Pulling Multiple Rows From MySQL DB & Inserting Into a TableView, Need Help!
Been trying to figure this out for weeks, bout to drive me insane! Just wondering if anyone knows of some example code that I can look at to figure out a way to pull multiple rows from one of my MySQL databases and insert each row into its own TableView...
Titanium.UI.ActivityIndicator is not an object error
I receive an error: "Result of expression 'Titanium.UI.ActivityIndicator [undefined] is not an object" when adding the following code to my app: var actInd = Titanium.UI.createActivityIndicator({ height:50, width:10, ...
Appcelerator custom module receiving callback for onActivityResult
I'm trying to create a custom module in Appcelerator for the new Square API for Android. I have everything the way I want it, but the main problem is that I want to be able to notify the caller that the payment was successful for if it failed. The Square...
Link to app on Facebook post
I have an app submitted that posts, among other things, to Facebook, and this came as an afterthought. On the FB post, it says "something like 'via appname'", I forget the actual phrase. Is there anyway I can have this link back to a specific...
Gallery Grid
Hello Appcelerator Community :) I am still new to this and need some guidance/help. I saw this app: http://itunes.apple.com/us/app/getty-images/id376812381?mt=8 And i want to create a gallery grid like this coming from a database. I also then want to...
callback event members
Hi, Is there a documented list of members of an event when our callback function gets called? I didn't realize event.media existed for a success callback to Ti.Media.showCamera() until I saw example code in the KitchenSink. Thanks.
Desktop App to Upload images, resize and save
I am new to Titanium and I am trying to figure out how I can use HTML and PHP to upload photos, resize them and save different size variations of them to a folder. I was considering also using a flash upload utility or possibly something with jQuery. Any...
Change the "value" of the iPhone Switch
Hello, how can I change the value of the Switch? by default, it is on ON/OFF but in my case I need to change it to 0/1 or another content, does this possible? or can you suggest me other controls?
Percentage Dimensions in nested views
I'm testing on Android and nested views don't seem to understand percentage dimensions. For example, when the code below installs on my device, viewInputs is not visible. ~~~ var win = Titanium.UI.createWindow(); win.backgroundColor =...
Newbie: I want IOS, not Android... how?
Hi, No doubt this is a dumb question but I just installed, tried to create a new project and Appcelerator believes it's detected both IOS and Android SDK's. No idea where the Android SDK came from. I just want to build an app for the iPhone. So when I...
Android Horizontal Layout
I've seen a handful of posts citing work arounds for doing horizontal layouts in Android. Is this still not supported with the "layout" property? What's the current best way to go about doing a horizontal layout in Android?
Android orientation forcing
Is this still the "best" way to force a specific orientation to an Android app? http://developer.appcelerator.com/question/40001/android-force-orientation It seems a bit messy and a PITA. Is there an easier, more current way to address this?
Launch Titanium Developer in small resolution
Hello, I'm trying to run Titanium Developer on Mac that runs in 1024 x 576 resolution. The app doesn't scale to this resolution and goes out of my screen. I cannot access the toolbar buttons so I can't really use it at all. Why haven't you included the...
Custom Module name issue
I just spent an hour trying to figure a problem I had with my custom module so I figure I'd share with everyone what I found out: If you are creating a custom module, you must add a namespace to your module (e.g. com.mymodule). I didn't add a namespace...
Problem with "POST"
Hi everyone. This is getting very frustrating to me. I need to sent a parameter via POST that contains the name of the database table that I want to include in the query. But so far, I haven't been successful. I'm getting an error: mysql_fetch_array():...
Keyboard Open Event Listener
Is there any way to listen for a " keyboard displayed " event?
Idea: Something like an onError event
Hey all, how do you handle errors in mobile application? I mean I want to display an alert dialog to my users as soon as an error occurs. Providing information what they could do now and so on. In the web browser it is possible to override the...
StoreKit and AdMob without TitaniumPlus?
I simply can't affort to pay the cost for TitaniumPlus. Does it mean that I don't have any chanse to use storeKit and Admob at all? only hope is https://github.com/masuidrive, but I am afraid that these module does not work like official module. Store...
htaccess support?
Is there some kinde of .htaccess support? My web app need Url Rewriting.
Display a browser
I want to include the functionality to enable my user to browse to any webpage and take a screenshot. I can achieve this using webview and my custom controls. **Can I display the browser default controls?** I hope I can, there's no point reinventing the...
Trying to translate and scale at the same time....
Hi I am having a problem trying to translate and scale a view simultaneously. I have the following code: ~~~ var scaleQTransform = Titanium.UI.create2DMatrix().scale(0.373); var QTransform = Titanium.UI.create2DMatrix().translate(-85.45, -117.3); var...
Is the documentation out of date?
I'm trying to learn how and when to use the *layout* attribute. Searching the API Reference guide, however, only finds it on one Titanium.UI class - table row. However, in the Kitchen Sink, it's in use on other classes as well, e.g. Window. I've been...
Unsure how to do vertical layout
I'd like to make a window with a search bar and a table view to show results. I feel like this window should be layout:'vertical', and the the views should just be added to the window. But this doesn't seem to work. (?) Must one explicitly set the...
App Navigation
Hi, I have a quick question on navigation I am trying to set up within an app. When my app is launched I have a page with a hidden tabGroup and a tableView list. When one of the tableview lists is selected it opens a new window with another tabGroup this...
approach for local notifications for Android
Since "local notifications" are only iOS at this time are there recommended approaches for simulating this sort of functionality for android? would the new "Simple Android Services" introduced in Titanium sdk 1.5 be the right approach...
navigating among windows
i am trying to switch from one window to another and back to the previous one ... but while doing so when i switch back to the first window .. the elements (buttons, views) are disabled and logcat shows that i am clicking on the window... here are my...
How do I do refresh the contents of a window opened by Ti.UI.iPhone.createNavigationGroup?
Hi, If I use the open command, the back button of the new page points to the current old version of the page. I'd like the back button of the new page point to the parent of the current page. Suppose A is the window from which the current page B was...
Table View updateRwo()
Hi, I try to use the updateRow() function to update the 'hasCheck' property for each row and it does what it is supposed to do, but it also removes the click event from each of the rows. I am just wondering if this is a bug for updateRow()...
Picture from Camera in Image View and Drag
Hi I am working on an app in which I want to take pic from Camera and then show it on image view. Also, on clicking of a button, an Image would come over the Pic taken from camera,I would like to drag other image(icon) over the image I took. Is it...
yql multi-queries
how would one pass a multi-query using yql in titanium?
Android: animatedCenterPoint not defined
Trying to get the x and y properties of the animatedCenterPoint of a view as defined in [here](http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.Label-object). Here is the code. ~~~ circle2.addEventListener('touchmove',...
Json Callback function
Hello, I want create a function, but response does not work! here is my function: ~~~ function loadData(getVar){ var data = 0; var loader =...
Missing images when run at iPhone device
My app runs without problems under the iPhone simulator, but when I install the app at the actual device, all images were missing - icon, background images, all pics gone. What could be the cause of the problem? Anyone help would be much appreciated! I...
flurry analytics module not giving full location data
after enabling the module and adding to my titanium project, flurry is only showing the country of where a user is at, not the further details. when clicking the map in the admin panel in flurry it says this: ~~~ Geolocation Data Not Available You have...
Appcelerator mobile for web apps...
Since javascript is essencially web native, is there anyway to publish an app written for android / iphone also as a web app. I realize this requires the translation of titanium UI objects into web UI objects (for example Titanium.UI.TextArea into an HTML...
Imageview animation doesnt work on Android
I have an imageView loading an image from an external web service. When I load it, I want it to display vertically instead of horizontally, so I do an animation to rotate it 90 degrees. If there is a better way to show the image vertically instead of...
Singletap event listener on WebView disables scrolling
If I add a "singletap" event listener to a webview, I cannot scroll the webview. How do I add a singletap event listener to a webview so I can still scroll it vertically? ~~~ var webView = Ti.UI.createWebView({ backgroundColor:...
adb.exe not working
Hello, I'm getting stuck building an Android app at this point `[DEBUG] "C:\Program Files\Android\android-sdk\platform-tools\adb.exe" -e get-state` I asked a previous question, and have all the correct paths (as far as I can tell), so I'm not...
KitchenSink, Php, errors everywhere
Also I can launch the basic desktop app, and it works, but when I try to add some php code from the php page it does not display it. Whenever it tick any of the language modules it pops a fatal error with no error code. I am running 64 bit version of...
Android Urban Airship Module Issues
I am trying to implement the recent Urban Airship Module in an application I am working on, however I am running into some issues. You can see the module here. [Urban Airship...
Android not working - adb.exe has stopped working
Hello there, I've got Titanium working ok on Vista, aside from the occasional crash. I can export desktop apps but not Android. When I try to launch my app I get 'adb.exe has stopped working' and the following messages in the console...
Can't get sound or vibration to work with notifications.
Hello. I need to add sound and vibration to my notifications. I have tried using `notification.sound` and `notification.audioStreamType`, but I can't get them to work. See https://gist.github.com/856690 for details of the code and trace. Thanks in advance.
setContentInsets of TableView doesn't work when table is full
The setContentInsets works only when the table is empty for the pixel which i want to inset the tableview. My SDKs: SDK 1.6.0 iOS SDK: 4.2 Sometimes in between it works is my impression, or maybe it was with an older SDK. That I can't say. Here the...
Date picker
After looking in the KS project, at the picker examples, I can't figure out how to configure my picker the way I'd like it and I wonder if someone can help. I'd like my picker to only display one column with say 'Sun Mar 6'. Looking at the Calendar app...
Upgrading database, will this work?
I'm updating my app and wanted to double check this code to make sure it works...I dont have an iPad to test it, so I'm not 100% sure.. ~~~ var upgrade=Titanium.App.Properties.getString("upgrade"); var file =...
Showing 35,751-35,800 of 47,726 1 … 711 712 713 714 715 716 717 718 719 720 721 … 955