Community Questions & Answers

Handling Connection Problems

Hi All, I am working on a little Twitter client with a pull-down-to-refresh feature. I have noticed that if my 3G connection becomes unavailable and I try to refresh the Tweet list I will no longer be able to use the feature during the current run - even...

How to use URL based window

Hello, I'm using the iPad [SplitWindow](http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.iPad.SplitWindow-object.html) in my application. When the user clicks on one entry/button of the masterView TableView, I want to update the...

SDK and Screen still says loading

I've read through many of the posts on how to fix this with no solution. Because the SDK and the Screen both say "loading" the AVD is never created. The emulator attempts to launch but fails. I'm using Windows XP. I've copied adb.exe,...

Getting a private app onto a device

We are making an app that is meant for internal use inside a company. Once the app is done, how would we go about getting the app onto the employees iphones and ipads? Does the app store have a private area or something?

Change the style of a button when clicked

Hello, I have a simple toolbar adapted from the Kitchen Sink example which is working perfectly. The only thing I need is to to change the style of the button i.e. swap the bordered and done when the event listener is activated i.e. when button change is...

Titanium Dev 1.3 & SDK 1.6RC1

I have downloaded the KitchenSink for SDK 1.6 and it works great, but when I run it in the simulator, it opens by default as an iPad app. I understand that support for universal apps is now included in the SDK but without Dev 1.3 how do we specify which...

API as .js? (desktop)

hey guys, is it possible to get the desktop api as .js file for autocompletion? I like the concept, but it's rather hard to start with titanium, if you have to look into the docs every time. And maybe I'm wrong, but it seems like the documentation isn't...

eventListener if( Statements

Titanium Mobile 1.2.2 // iPhone SDK 4.0 // Platform iPhone Im having a bit of trouble trying to set the index values of items (TabbedBar) to Text that is saved as a preference. I don't want 0's or 1's to be printed in the email form, so i THOUGHT it...

Planning my app - Pull data daily?

I'm doing some wireframing and planning my first app. I'm going to need to do some sort of check-in between the app and a web service (REST), say, once a day and add a numbered badge to the app's icon as an alert/notification. Is there some project...

422 views
asked 2 years ago by T.J. Mahaffey
last activity 2 years ago

size.height in Android returns 0

Hi there, I have a nasty problem. We are working on a app for Android. We have a scrollView with multiple views in it. The views are listed vertically with a margin between them. As the content of the views are variable we can't use top to position then...

Factors Impacting Runtime Performance

Right now my app seems very sluggish (on device) compared to other apps. I'm wondering what some of the factors (within a developers control) that could be contributing to poor performance. Are there some common gotchas? For example: - Impact of...

Can you compress a JSON call?

Hey Guys I am sending data to a webservice for processing, before it is magically sent back to the device to display nice useful data to the user. The problem is I am potentially going to be sending a LOT of GPS coordinates. I really want the app to...

Getting "Network error" while making a HTTP call.

Hi Guys I a just trying my first Android/Titanium demo application based on http://mobile.tutsplus.com/tutorials/appcelerator/titanium-user-authentication/ I am getting a "Network Error" while trying to call a PHP file on the local web...

Perl support

Is there any plan to add perl support to the desktop application framework?

Having 2 tableviews in one window

Hi, i would like to create 2 different table views in one window. Which is one custom tableview on top and an another normal tableview below it. I have done something like this but it doesn't appear on one window. --- var win =...

Load a WebView with given cookies?

Dear community, In my application, I am using Titanium.Network.HTTPClient to perform login to a website and I get cookies from that connection. I'd like to then load a private page in a WebView using these cookies. How can I load WebView with a given...

Sqlite not advancing records

Hey, Little stuck here people.. I have (thanks to the help of Paul here) accessed my sqlite database and plotted a point on the map. My problem is it will not goto the next record and plot that as well. I've included a link to my data but it for some...

Slider Calcs

Hi. This is probably very easy, but I'm not getting it.... I have three sliders and I want to display the calculation based on the values set for each in a label. var Calc = (customSliderLabel1.text * (customSliderLabel2.text-customSliderLabel3)); What...

Simple createScrollView test that crashes simulator

I have a multi-field form that extends beyond the windows height so I looked in the docs and found that scrollview is what I needed. To test (and learn) how everything works I tried the scrollView example code from the API guide. Here's the code: ~~~ var...

mobile site to app

hi, i have just finished a mobile site, but i would like to convert it to an app so it can run independently on a computer or mobile device. can titanium help with that? i want to take my site and make it a commercial app. i don't know what to do at...

App works in emulator, not on iPHone

Hi, everone. My app works as intended in the iPhone emulator, but not when I install on iPhone 4.2. http://pastie.org/1560006 I've tried to debug by commenting out various lines of code and reinstalling. The test row displays fine as long as I comment...

Different UI for iPhone and Android

I'm developing an app for both platforms and my original plan was to use one UI design for both and branch in-code, as needed, to achieve this. I'm having difficulty achieving this due to differences in the ways controls render on each platform. I'm also...

Camera view odditys

Hi, I have an odd problem with the camera in my app. I want to take two pictures and place them in my windows side by side (with a little gap). This works fine and i have got the camera returning images and populating the views. However, when i take a...

even simplest TableView won't work

Hello people, I am trying to make TableView work, but even simplest example crashes. I must be doing something wrong because KitchenSink works. Here's the example: ~~~ var window = Titanium.UI.createWindow(); var data = [ {title:'Row 1', color:'red',...

Nested JSON to Rails api

Hello, I have a rails api, which requires a user object, with an email and password for authentication. JSON serialization to the rails API does not seem to work. the inner object gets escaped. Looks like others have the same issue:...

Showing 36,501-36,550 of 47,721 1726 727 728 729 730 731 732 733 734 735 736955