Community Questions & Answers
Two strange behavoir of TiSDK 3.1
Hi I have across the tow strange problems related to TiSdk 3.1.There are following 1)I could no longer go to Homescreen but the app exits one screen before the Homescreen.This wasnt problem at all TiSDK 2.1.4 2) Tab groups are on the above screen.That i...
Perform Animation within scrollview:scroll event
Hello, I'm pretty new to Titanium and I seem to be stuck on how to achieve a certain effect. A little history. I'm building an App for both Android and IOS but am focusing on IOS first. I'm using Titanium 3.1. Ok, now to my roadblock. I have a...
Open an ibooks file from my app into iBooks app
I currently allow the user to download ".pdf" and ".ibooks" files to my app's directory (iOS only app). I need to allow the user to "open in" another app. **This already works great for ".pdf" files using the...
Use JavaScript files (located in applicationDataDirectory) in html
Hi people! I have a problem. I'm trying to show a local html with javascript files in a webview. I have all stored in applicationDataDirectory (images, html and javascript) and I don't know why the html load properly the images but no the...
Titanium not compile after Android SDK update - Please Help!
Hello, i've a problem, i've just updated the android sdk to its latest version and now titanium can't compile anymore, it gives me an exit code -1 error, it seems there is something wrong with manifest i've tried to make a clean build but it didn't work....
Webview in TableViewRow - not responding to first click on Android
Hi, I have a tableview with ~40 normal tableviewrows, each row has it's own event listener. Every 5th tableviewrow is a different type of row, with a webview showing an advertisement. The advertisement is an animated gif inside a hyperlink. I need the...
Label Text not wrapping 3.1
Hello: I've a problem with the text wrapping inside a label on Android. This code works fine in the v 3.0.2. ~~~ var labelDir = Ti.UI.createLabel({ top: '1%', left : '13%', right : '10%', height: '50%', color :...
browsing file to from webview android
i created a webview in the app. and in the HTML page i used a form to upload pics from android devices to the server. if i use the default device browser, it works great, i can browse from the gallery, select and upload any pics but if i open the same page...
Expose Custom Controls Properties
I have a custom timepicker control and I want to expose some properties out such as the value of the control and what the value would be in 24 hour format but I can't seem to get the functions to be exposable ~~~ function...
Shifting from one window to another
I am new to this. I am having button on 1st screen and after clicking on the button It goes to the next Screen where it displays some data. But while doing so, the earlier window still can be seen in background so how to overcome the same?
How to navigate to Apps Home Screen (Android)??
Hi, For my Android Version of our Titanium App I have a "Home" button that I will expose from the Android menu. Therefore it will be accesible for the User no matter which screen they are on. My question is quite simple; On the click event of...
Ti.paint save image to database
I am using ti.paint module for signature capture, now I want to save these signatures in database how can I do that?? Thanks, Aniket
Crete Map, and set location in constructor - not working
~~~ var mapView = Titanium.Map.createView({ //bottom : 0, //top : 0, region : { latitude : 46.776949336547666, longitude : 16.630390014964945, latitudeDelta : 0.001, longitudeDelta : 0.001 }, mapType :...
Installation problem with MAC
Hello everyone, I am trying to install Titanium in my MAC-book pro, but when it asked me for the update: http://img4.hostingpics.net/pics/755431Capturedcran20130516105304.png I got always this...
Cros Origin issue on web view
Hi , Used HttpUrlFormatter code snippet to avoid Cros Origin issue on web view but still getting below error , Same webservice call code works fine for android emulator but when i packaged to mobile web got below error. Origin http://127.0.0.1:8020 is...
animation
i need animation like blasting after game is completed successfully. is it possible to get in titanium appcelerator for both android and iphone. any help? thanks.
Build Failed Iphone app
Hi, I need some help please. I'm trying to install my app on my iphone but errors appear: [ERROR] : ** BUILD FAILED ** [ERROR] : The following build commands failed: [ERROR] : CompileC...
Where API for SDK 3.2?
Hi, I want to use new listview features like pullview and search. Where can I find? Rainer
label crossed
Hi, Is it possible to cross label ? (on android and iPhone). thanks
My own files in app/Resources/iphone get deleted
I copied a .bundle file there and once I build, it gets deleted. And I'm not talking about the app/build/iphone directory, but app/Resources/iphone!
Animations
Hi all i'm new to mobile development kindly share me tutorials/videos of animation module or properties used in titanium studio. As i'm beginner to mobile development kindly share me tutorials/videos with examples it would be grateful........
Using X.509 client certificate as method of user authentication ?
Hello, is there any way to use Titanium.Network.HTTPClient or another known module, Tiitanium API, etc. to open a SSL connection to a server and authenticate the user via a X.509 client certificate ? My question relates to Titanium SDK 3.1 since there...
Build hook for module project
Is there a way to have a hook in a module project (no, not application project where I can use plugins)?
Fetching different models with a specific idAttribute inserts instead of replaces the "old" object in the fetch succes response
-Problem A model is created. The id of the model is set to a specific id. A fetch is made. When repeating this for another model with a different id results in a succes response object with 2 objects. There should be only one object because the fetch is...
Textfield text is cut off from top on Android
Hi All, I have a form with several textfield , but in every text field the vertical text alignment is not centered and text is cut off from the top. The same code is working well with ios platform. Here is the code which i am using: ~~~ var emailField =...
Static library in module.xcconfig - how does application project get the correct path to the library?
I've added a third party framework to my iOS module's module.xcconfig file as follows: ~~~ OTHER_LDFLAGS=$(inherited) -framework SomeFrameworkName ~~~ The problem is that the application project using this module does not find it because the...
Problem While Running Kitchen Sink Application
Hi, Iam Facing the below Error while running the Kitchen Sink Application Can u please help in this issue.... [ERROR] : Build process exited with code 1 [ERROR] : Project failed to build after 4s 642ms [ERROR] : Emulator process exited with code 1
Search Query on tags of POST is not working on emulator
Hi All, I previously post 2-3 question on search query. I am get some suggestion on question is i asked on this link [inline http://developer.appcelerator.com/question/152340/issues-with-search-query-and-camera#comment-173559 text] Now I am refine my...
Unable to get e.globalPoint.x in Titanium iPhone development
I am trying to get globalPoint in Titanium iPhone application when touchmove event occur, I use following code to get globalPoint ~~~ var x = parseInt(e.globalPoint.x, 10); ~~~ It work fine until I updated Titanium 3.0.2 GA to 3.1.0 GA, after updating I...
can not access facebook
hi Its been a couple of days i started working with titanium and got familiar with the framework. Its really cool framework. Now i am building an app trying to connect with facebook.... I also registered an app on facebook developers and got the id.But it...
Problem with database
Hi guys, I'm creating a database using Ti.Database. I'm trying to have an auto-increment column so that i can update values of the row or delete the row. When i try create the column, i encountered an error. Can anyone help me debug? And I wanted the...
ScrollableView dragstart & dragend not firing?
Ti SDK 3.1.0 / Mac OSX 10.8.2 For some reason the `dragstart` and `dragend` don't fire? Here's some code: ~~~ var self = Ti.UI.createWindow({ backgroundColor:'#ffffff' }); var backgroundMainImage = Ti.UI.createImageView({ ...
[WARN] : Called remove for [object TiUIView]
I am storing the top and left values, then trying to read and pass them to a (new or old) view when needed. I am getting [WARN] : Called remove for [object TiUIView] on [object TiUIWindow], but [object TiUIView] isn't a child or has already been...
Google Maps V2 in Android: Empty Map View
SDK 3.1.0.GA, T-Mobile G2 device I created debug and release API Keys using the Google Console, installed the maps module successfully, added the API Keys to tiapp.xml, and now when I create a map view it is empty. The only things visible are the zoom...
Google Map v2 3.1.0GA it.map
I’ve successfully installed the it.map module and IDE can find it correctly. But the module won’t work. Both Web Browser and Android Device crashed. Web Browser: Uncaught TypeError: Cannot read property 'NORMAL_TYPE' of undefined at /app.js (line...
Map view remains blank Android
Hi, I am developing an application where I need to use the map view. The app is a mobile app for both the iOS and Android. As you know using a map view in iOS is quite simple. I am having problems in Android. The map view shows but it remains blank. Only...
Retrieve cookies from webbrowser to app ?
Hello, I read a lot of stuffs concerning cookeis / authentication, but I cannot figure how I could open a webpage with a webbrowser from titanium, log me in and retrieve the cookie in the app. That is the last point that I miss. It is so much easier to...
ExpatError when running Titanium CLI from script
Hello, I am writing an automated build script for our mobile application. This script is written in Python and uses subrpocess.Popen to call the titanium cli to build the application. I am getting the following Traceback: ~~~ [ERROR] Traceback (most...
Blackberry 10 navigation windows and back button
Hello All, Start play around the Ti with the new blackberry SDK, I'm not sure about if the blackberry SDK is support the navigation windows or not! if not how the back button will be display on the second window? I see the blackberry 10 apps the back...
Facebook reauthorize keeps gettign called
I'm not sure what I'm doing wrong here, any help with the Facebook authorize and reauthorize process would be greatly appreciated. When a user presses a button, the following function is called: ~~~ var fb; var facebookLogin = function(){ fb =...
Open Gallery when camera is opened
Hi, I'm trying to select a picture from gallery (with the camera already opened) to overlay with the camera view. The problem is that I cant take a picture after select the image from the gallery, because some camera problem (works if I dont open the...
How do I rearrange children in a view hierarchy?
I need to set the child at position 3 to a widget after a user clicks on a button but I noticed that the View class @ http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.View only allows "read only" access. I don't need to remove the...
Storekit - state of purchase
Hi, i want to talk about purchase. It is possible to know if user have bought a product ? without saving state on db after buy it and restore purchase, but with call "requestProduct" throught callback information. Thanks for you answer.
user location near a annotation
Im building an app with titanium and i am creating multiple annotations on a google map. My question is if somehow i can check if user location is near an annotation and lets say fire an alert. Is this possible? In a similar project with javascript i was...
Android: Display "next" or "done" on keyboard
I want my ascii/text keyboard in my textarea to display "next" or "done" in the bottom right corner, so when I click it it doesn't make a newline but blurs the field. My code: ~~~ var win = Ti.UI.createWindow({ backgroundColor :...
iOS - problems with fonts
Good evening, i want change the font from a label. I had read the documentation but it does not work for me. http://docs.appcelerator.com/titanium/latest/#!/guide/Custom_Fonts I try many fonts like "Arial" or "Helvetica" also i...
Yes... another TableView in ScrollView question
Are there any suggestions for getting a tableView to be scrollable within a scrollView? I've tried setting canCanelEvents on the parent scrollView but then that causes issues with not being able to scroll at all if you happened to try to scroll up while...
displaying data in android
Hi all i'm trying to parse data using json web service and poster it in emulator so i create a database like below but now i want to post up the data and i don't know how can someone help me please ~~~ var win = Ti.UI.createWindow( { ...
Detect click on webview to fire event to app
Hi I'm using SDK 3.1 I'm trying to fire an event in a webview and detected it at app level. I've followed all the post I have found on this subject but I cannot make it work. I need to attach an event listener to all images, which are generated from the...
titanium non-swipeable taleview
If you look at the settings app on the iphone, it has multiple table viewes one under another. tough when I swipe the screen, I son't swipe the rows of each tableview, but the whole screen. Can I create a tableview, that is just a table, and does not...