Community Questions & Answers
Android: Force Close on first run after submitted to market.
Hey, I have just submitted my first App to the android marketplace. *Woot* However, there is a bug which doesn't occur in testing on any device until its built for distribution. EDIT: This only occurs when installed OTA (from the market for example). The...
Search bar already hidden at the beginning?
Hi, I have a search bar in a table view in this way: ~~~ var search = Titanium.UI.createSearchBar({ barColor:'#385292', showCancel:false, hintText:'search', hidden: true }); var tableview =...
"Run Emulator" tab blank (Android)
[Edit: apologies for the misleading post title - the tab was blank, but I got that working after starting my original question but forgot to change the title!] Hi there, I've followed the 'getting started' instructions for Android development, and all...
intercept low memory warning will be?
As I know there is no event for low memory warning that send iOs to app. When it will be implemented? Is there other way to prevent app crash over this reason?
Prevent tabs icons color changing
Hello, I'd like to prevent iOS from changing the color of my tab icons, is that possible? Thanks.
Can't animate back in place
I have made a very simple animation where I animate and scale an imageView on click event. In the click event the original left ,origLeft, and top, origTop, is saved to variables. Then I listen for the complete event of the animation and scale the image...
Kitchen Sink on android App Store (for a price???)
Maybe I'm the only one surprised, but I just saw the Kitchen Sink App available on the Android App Store. The funny thing is, it's for sale! (around 1$ a pop) Here is the...
sending and retrieving data from webservice
hello there, im new to titanium and i jumped into the API trying to figure out how to send and retrieve data from a webservice. As javascript is new for me im still learning javascript. Now i have looked around for code that i could use, but i couldnt...
Unable to package desktop app
I've been unable to package my desktop app for the past 3 days - I always get a "request timed out error". I've tried creating a new app from scratch as a test, but the package never builds.
How to create padding and margin on imageview on tableviewrow
I have created a tableviewrow to display a few images, and I would want to create border for the images with padding 1px, and margin between images are 5px. May I know how to set padding and margin on imageview? Thanks. Ti:1.6, Platform:Android
display arabic (utf-8)
i would like to display utf-8 characters in a tableViewRow, what shoula i do ? thank you ~~~ var row = Ti.UI.createTableViewRow({ title: titreArticle, rightImage: imageArticle }); ~~~
Handling
Hi all, I'm trying to use Intent and call the other program from my Android application but facing the problem for handling an exception. If I look up Java, there is the way to handle "ActivityNotFoundException" but how can I handle it with...
Bold words inside Label Text
I'd like to make selective words in label text bold, as headings for paragraphs. My workaround is making separate labels, but identifying the 'top' location for each label is terrible, especially when modifying the text. Tried using some escape sequences...
Event pointer forwarding crashes application (mobile 1.5.1, 1.6.0 RC)
**Imagine a scenario with:** - application - window - error handler class Application handles user login and window loads a data. Sometimes login session expires and data request fails. In this case window throws an exception to the error handler with...
How can I make a call on Galaxy tab?
I use the code on Galaxy Tab as following: Titanium.Platform.openURL('tel:4043332222'); However, it shows the following error TypeError: Cannot call method "openURL" of undefined (app://app.js#58) What is the problem?
Project Creation Error...
Hello Guys ! While Creating New Project in titanium 1.2.2 when i am selecting Titanium sdk Version 1.5.1 and click on the create Project Tab then i get message on top of the windows "Project creation error:no "android-4" or...
Logging objects
I've been playing with Titanium for a bit now and so far one of my major gripes is the limited logging using the built-in Titanium.API.log() function. Being spoiled with PHP's var_dump function I was trying to simulate this functionality, but I got stuck...
How to disbale iPhone keyboard shift key ?
In My iPhone App, when ever I try to edit the content in TextField, by default the SHIFT key is enabled , so I am able to type only capital letters. How can I programmattically disable the SHIFT key?
How to interrupt a running loop?
Hi everyone, Does anyone know if there is a way to interrupt a running loop in Titanium. The idea is simple - there is a loop which runs for some length of time and it is necessary to interrupt it. So far I found only one way to handle it, by using the...
unable to parse JSON with json export from mysql
Hi, I'm new to titanium and find it's cool. I took the twitter client sample from the web and made a small test on reading mysql data with JSON. Read the book names and list them in a table. Are there any special JSON format requirement for parsing it...
how to get updated user input from textarea
I'm currently stuck on retrieving the updated input made into a textarea on another window. I can see that the data is being read & stored to the variables via the EventListener, but when i open the new window & call a function, it doesn't have...
CreateToolbar() causing crashes v1.6
i'm using the latest continuous build of 1.6 and can't use createToolbar without a crash on load. Reverting back to 1.5.2 and all is well. Anyone else experiencing this? ~~~ var toolbar1 = Titanium.UI.createToolbar({ items:[flexSpace,camera,...
How to set the zoom level of the map
I want to set the zoom level of the map and try to use latitudeDelta and longitudeDelta in mapView to change the zoom level of the map, however it is not success. can someone help me.
dialing a phone number
I have a table view, and have a "Contact Us" and a "phone" listed in the view...how do I code the entire view for the phone number to be dialed by touching the number? I am a Newbie & fumbling around on this one for a day or...
orientationchange scope
is there any way how can i get current window inside the orientationchange event function ? ~~~ Ti.Gesture.addEventListener('orientationchange',function(e) { // doesn't work Titanium.API.info(Titanium.UI.currentWindow); }); ~~~ it looks like that...
orientation change just for one window on iphone
i would like to allow exactly one of my main windows (associated with tab) to react on orientation change. by default, all tabs have just Ti.UI.PORTRAIT option (set in tiapp.xml) i can change orientationModes for specific window, but its messed up. 1....
Excluding .svn files
Hi, I'm using 1.6.0 RC-1, Titanium 1.1.0 and Android APIs 2.2. I'm trying to use SVN to version control the application I'm working on. However, when I try to compile the project, I get these errors: ~~~ [ERROR] Exception occured while building Android...
How do you configure a titanium service as an Android receiver?
I have added the android service definition to tiapp.xml but I can't figure out how (or if it is even possible) to configure a Ti service as a receiver. After noting that myservice.js is converted to a com.example.MyserviceService class, I added a...
[ERROR] Error generating R.java from manifest
I get this error every time i create a new project on android don't know why if someone know the solution thanks [ERROR] Error generating R.java from manifest
Javascript Compilation on Android
Hi, I noted on a number of places online that the following is meant to work to have the javascript code in a mobile titanium compiled when added to the tiapp.xlm file for android: ~~~ <property name="ti.android.compilejs"...
Random crash on iPhone with UI.Picker (Code & Exception inside)
As the title suggests, I am getting a frequent, random crash on a particular window of my app - only on the device itself. The simulator does not exhibit the same issue. I am pulling a list of Categories from an API and populating a Picker with the...
Button Active State
Hey, I've created some custom buttons which just use a backgroundImage e.g. ~~~ Ti.UI.createButton({ width: 42, height: 156, backgroundImage: 'images/interface/btn/btn-menu-arrow-right.png', }); ~~~ Is there a way within the API to set the active...
SDK Updates in Linux
I have Developer 1.2.2 Installed on both my Win7 Laptop and my Linux Mint 10 Desk top. The Windows updates fine, but when I click the link to update the Mobile and Desktop SDK's in the linux installation the application does nothing? Anyway to fix...
Keeps telling me it can't find Java
I downloaded Titanium today to look at its mobile environment. I have the Android SDK installed and the Java SE 1.6.24 installed, however, anytime I try to start a mobile project in Titanium, it tells me Java not found. I've tried uninstalling and...
passing variables
Hey, im new to this and i cant figure this out by the examples... I hope someone could show me how its done. In my app.js i have created 3 tabs that displays other .js files. In my first tab i load data from a database and i need to get a variable from...
What's a good way to know if a view is open or added?
I need to determine if a window is visible (if it has been added or opened). What's a good way to do this?
fullscreen:false and variable scope
Hi all, I'm trying to write a bit of code with a variable shared between a master file and an included child (as below). Here's my problem; when the initial window has a fullscreen value set, the included file can't see the 'm' variable (when I comment...
Titanium Pro & XP SP3
A very good morning! I cannot get titanium developer to work with XP I've installed the latest JAVA JDK & JRE It all comes down to the following error(s) [ERROR] Required jarsigner not found [ERROR] Required javac not found [ERROR] Required java...
[bug] Ti Mobile 1.6RC1 CreateScrollView
This seems to be a regression since it works in 1.5.x. Building a window with a ScrollView crashes the application. iOS: 4.2 Ti: 1.6RC1
how to transmit variables between two windows
hi, i have two windows, the first : ~~~ row.addEventListener('click',function(e) { var winArticle = Ti.UI.createWindow({url:"article.js"}); winArticle.open(); }); ~~~ the second window : ~~~ var winArticle =...
Which audioplayer for streaming mp3 on demand
Hi, I want to play an on demand mp3 stream, so no live streams. I also need to be able to jump to a time position in the audio and play from there, but progressive download is no option while the audio files could be large. I need an implementation for...
How to show the title on a local WebView ?
Hi, I use the Local url on the WebView for showing local html files. But on the local Webview, I dont' see the title of the page. I read that lot of people have the same problem but for the remote webview not for local webview. Someone has a solution...
UTF 8
hi, how to display an arabic text which are based on utf8 ? thank you
SHA1 Digest in TItanium Andrpoid
I am using this method : Ti.Utils.sha1("11") to get SHA 1 digest . It works in iPhone. But I get "can not call method sha1 of undefined " error when using it in Android. Can some one say what is the problem?
Titanium erros on building my first iphone app
Hi all, Got this error by compiling my first app, even with no code from me : [INFO] Performing full rebuild. This will take a little bit. Hold tight... Traceback (most recent call last): File "/Library/Application...
Problems getting started...missing Info.plist.template
I am trying to get started with Titanium, but I'm having a problem launching the iPhone emulator running the demo KitchenSink app. I'm running 1.2.2 of Titanium Developer, and I've got XCode 3.2.5. I've downloaded KitchenSink and imported it into...
How to create a custom keyboard?
Hello, I need a simple custom keyboard, only numbers, dot, delete and save button without any other option? Is this possible? Best regards
How can I run a mobile app in the background
Hello. I need to run my app (for both Android and iPhone) in the background, with a tray icon. How do I do this? My app will regularly connect to a server and check if there is anything new. So the user starts the app, do stuff, then when he exits the...
Problems to open a WebView with Link
Hello everyone, I have some troubles to open a WebView after pressing a button that is in a row of a tableview. Here is a excerpt from my code: ------------------------------------ var button = Titanium.UI.createButton({ title: 'Link' ...
tableView - RSS feed
I have question : how to fil articles tab dynamicly and display contents in tableView : i tried this but it's not working. thank you ~~~ var articles = Array(); var client = Titanium.Network.createHTTPClient(); client.onload = function(e) { var doc =...
Showing 36,201-36,250 of 47,661 1 … 720 721 722 723 724 725 726 727 728 729 730 … 954