Community Questions & Answers

"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...

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...

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 }); ~~~

858 views
asked 2 years ago by Djamel ZAHAL
last activity 2 years ago

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...

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 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...

324 views
asked 2 years ago by Dennis P
last activity 2 years ago

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...

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.

601 views
asked 2 years ago by walkstreet 1
last activity 2 years ago

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...

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...

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"...

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...

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...

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 =...

345 views
asked 2 years ago by Djamel ZAHAL
last activity 2 years ago

UTF 8

hi, how to display an arabic text which are based on utf8 ? thank you

758 views
asked 2 years ago by Djamel ZAHAL
last activity 2 years ago

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...

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 =...

405 views
asked 2 years ago by Djamel ZAHAL
last activity 2 years ago

Showing 36,201-36,250 of 47,661 1720 721 722 723 724 725 726 727 728 729 730954