Community Questions & Answers

Redraw on screen rotation

Is there any way to get the screen to redraw when the mobile screen rotates? I've got some ellipsized labels that don't get any longer when you rotate the device. Ideas? Suggestions? I'm doing it wrong? Just a simple label with left and right set. seeing...

HTTP request serialization or chunking

I have situations where I need to make lots (say 50 to 100) HTTP requests "all at once". The responses vary, some are small JSON, but some are large documents and PDFs. Should I consider serialization or chunking of those requests? Or does Ti (or...

Andriod Issue

The application xxx has stopped unexpectedly. Please try again. How can I determine what is wrong, as nothing is reported, like normal errors in the app. Using latest SDK 2.1.

How to Load pages as you swipe?

I have created a basic application for testing and make the assumption that all three pages are loading automatically. Is that true based on the code? If I didn't want each page to load up front including all images how would I alter this code assuming...

ImageView won't remove from Window

Hi guys, I've got an app that will display a nice friendly image view if there is either no data connection or when there is an error in parsing the data via XML. For iOS (iPhone) using the latest SDK. Here is the function: ~~~ // Hide the activity...

CBMVC Framework with Titanium release!

hi everybody, I have created a MVC framework with titanium and welcome to try it :) Feature 1. Use MVC + commonJS structure, and use a namespace for the structure, it can avoid the memeory leak. 2. The switch page animation can support left,right,up and...

anim search bar when keyboard appears.

Hello, I am making a multiplatform app under Titanium sdk 2.0.2. My problem is relative to the android version (using sdk 2.2). The first page of the app got a searchbar at his bottom. My goal is to be able to keep seeing the search bar when i am...

Insert values in database only once

Hello, I have an application that reads data from a file and stores them into a database. But I need to store the data only once, so if I close the app and open it again, the same values should not be inserted again. Is there a way to create a flag or...

How to send POST parameters

I am trying to send post request to web-server using below code Method: POST Parameters (POST): cId, json (example: {"Text":"test","IsPublic":true}) ~~~ var addMsgReq = Titanium.Network.createHTTPClient(); var data_to_send...

cant create VM using ADV in windows 7 x64

hi, i have installed SDK tools 20, it used to work when i was using 18 but now adays when i try to create a VM i got this error http://d.pr/i/lXup which is related to the sdcard .. i tried to create a card manually and attach it to the device .. but...

Updating Apache Ant

Forgive a newbie question, please, I am very new to programming and Titanium so am facing a steep learning curve. I am working my way through Tim Poulsen's excellent video tutorials and note that he recommends updating Apache Ant to the latest version. ...

iPad 3 Retina Splash Screen

Hi I'm trying to get my splash screen to look proper on the new iPad. Initially, when the app loads the splash screen looks like expected. However, after around two seconds, it seems like the retina-optimized splash screen is replaced by the...

YQL and xpath

Hi *, I try to get a div with ID: ~~~ select * from html where url="http://www.pflege.de/blog/2012/07/fahrrad-fahren-der-ideale-sport-fuer-das-alter/" AND xpath="//*[@id=\"leftsingle\"]" ~~~ and this is on console: ~~~ ...

The sytle of the tableview, two colors

Hello, I seek a way to add color to my tablevieuw. Two colors, yellow, orange, yellow, orange ... indicate two colors in my tableView and then it automatically generates my tablevieuw with my colors Can you help me please? thank you

Design facebook

I need desgin template notification like facebook Image ![alt text](http://www.imagetoo.com/images/untitlhzh.jpg" Facebook")

Problems with OpenURL

I have an android application, with a tab with 3 windows. In the windows there some images with a link to a url like this: dialog.addEventListener('click', function(e) { if (e.index==0){ Titanium.Platform.openURL(wiki1); } Everything works fine...

Camera showing up behind Navigation Group on iPad

Hey guys, usually I can find an answer to my question based on previous Q&A, but I'm finally stumped. I am creating an iPad app with a Navigation Group. The rest of my navigation group preforms accordingly but when it comes to the camera, it is...

Vertical text align in labels

How can i make my text in labels aligned at the top vertically because it seems like by default it is aligned middle. I saw there is a verticalAlign property but it was only for webmobile... Any help? thenks in advance :)

Swipe simple web view

I am creating an iPad application. Just getting started. I have an example that was created and trying to change it. Right now it's one page of an index.html with css and javascript pages. The page swipes and exposes different <div> elements per...

sqllite select with parameters help

i have successfully created the database for login form .. i now want to get the values from 2 text boxes and then put them in my select statement . How can i put those parameters in my select stmt? ' ~~~ var username = Titanium.UI.createTextField({ ...

Create views dynamically based on the JSON

Hi all, I am creating the views based on the json returned to show the club name but its making 7 views instead of 3 . Don't know whats going wrong. Here is my code ~~~ var url = "http://www.easy-night.net/easy-regie/json/"; var xhr =...

ACS Settings not saving..typical?

I created an app in ACS, and when I'm configuring it, I uploaded my dev/prod iOS certificates, and I set my Android package name. When I save it, it says its saved, but the Android section is always blank, ad the iOS defaults to the Development one. Is...

multiline working but \n is visible

So I have a label, and the text value comes from XML. This is how the XML looks: ~~~ president Nicolas Sarkozy slinkt. \n52-48 \nEen vandaag gepubliceerde peiling ~~~ If I check it in the iOs-simulator, it comes up like this: ![newline fail...

Using getFile in a directory created

Hi guys! I'm trying to do this: get a image in a server, create a directory and move this image to this directory. I tried a lot of things to get this image in the directory that i created and show it but my code is not working. What am i doing wrong?...

Showing 27,851-27,900 of 62,399 1553 554 555 556 557 558 559 560 561 562 5631248