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,...
click event listener on Ti.Facebook.loginButton
My app only supports the landscape orientation on iPhone. There is a Facebook login button in the app, which opens up the login dialog in landscape mode. But logging into Facebook in landscape mode is very user unfriendly. You can't see what you're...
setTimeout running in background for Android (iPhone?)
I have an app that uses setTimeout every 30 seconds to update status information. It appears in Android to continue running after I go to home screen. How can I slow the setTimeout down when running in background (and vice-versa) to reduce load? Also: I...
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...
Textfield change event firing twice and wrong in certain scenarios [BUG]?
I have an issue where if I add a character in the middle of a textfield, the change event gives the wrong details of that character. So if i have a text field with the characters 'abcd' and I type a m in the middle to give the characters 'abmcd', the...
database not inserting and/or saving information
I only have a loose idea of what I am doing with sqlite and I beleive this to be simple syntax error that so I have only posted the minimum code for simplicty's sake. `Ran on window load (this seems to work fine)` ~~~ var db =...
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...
Cannot set window backgroundcolor in titanium 1.6 RC
The coding below can set background color of tab windows under titanium 1.5 but not working on titanium 1.6rc. I am using Android emulator. How to set windows' background color on titanium 1.6 rc? ~~~ // create tab group var tabGroup =...
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...
Is there anyway to jump to a specific point in a textfield?
For example, I would like to move the cursor to the 3 character in the text field.
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...
Build Android app stops at '[INFO] Copying project resources..'
Hi all, I have the same Issue descripted in (http://developer.appcelerator.com/question/83061/build-android-app-stops-at-info-copying-project-resources) I work on platform: OS Windows XP SP2 Titanium Developer 1.2.2 Titanium SDK 1.5.1 Android SDK APIs...
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...
Could nto find the Emulator launch button for mobile type project
I have installed Andriod SDK Platform 2.2 Created device and its launching properly. When i create a project of type desktop, it works fine. I can launch the project. But for project of type mobile, I am not able to see the launch button :( I have...
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...
Can the Appcelerator SQL Lite Database be encrypted on a Database level ?
Hi, We are looking for encrypting the Database we use for the local storage for a desktop app.. Is DB level encryption supported ? I am not talking about a Row level encryption.. but DB level one.. Thanks !
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...
dynamically create TbaleviewHeader and row with index
hello all, Here We need to create the table view by generating the table view section and table view row, here i attach the screenshot link copy and paste in the...
Geolocation format like 21° 16' 674S, 27° 30' 318E
How do i convert the longitude/latitude to the final format above? Any built in functions that handle this? I simply want to display the current location of the user by text in this format: 21° 16' 674S, 27° 30' 318E
Perl support
Is there any plan to add perl support to the desktop application framework?
Window slide effect from right to left
Hello, I'm new in Titanium developing. On the Mainwindow (that's the beginning of my app, without Nav- and Tabbar!), i'have a png rolloverbutton (green) . I' click the green button and i like to have thats the nextwindow (blue) slide from right to left...
Error saving contact on call
I'm trying to save a contact on call, but are having trouble making it work. Here is my code: ~~~ var phoneButton = Ti.UI.createButton({ title:'Call', width:150, top: 100, height:50 }); phoneButton.addEventListener('click', function(e){ var...
createCustomTableSection
how to create custom table view section as well as the custom table row
sectionIndexTitlesForTableView
How to set sectionIndexTitlesForTableView
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...
Trouble loading the RC for 1.6.0
I have repeatedly tried to get this to load properly, and each time I run into some difficulties with permissions. On my system I have content in both the /Library/Application Support/Titanium and ~/Library/Application Support/Titanium. I'm assuming,...
Changing CSS attributes on multiple WebViews at the same time. Possible?
Hello, For a project I need to be able to change the body background color of multiple webviews at the same time. All of the webviews are on the same .js file and I need that when the user clicks on "black" all of them change to black...
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...
PHP mb_regex_encoding only works in OSX (not in Win32)
Calling the mb_regex_encoding() function in PHP works fine when the App runs in OSX, however under Windows (XP or 7) PHP throws the following: ~~~ Fatal Error: Call to undefined function mb_regex_encoding() in ... on line ... ~~~ Are we getting different...
Custom leftNavButton (Back-button)
Trying to make the "back" buttom get a custom color or bacground image.Can't get it to work. Any tips? Thanks in advance. ~~~ // create table view event listener tableview.addEventListener('click', function(e) { if (e.rowData.test) { var...
Understanding the Titanium Mobile Source Code
Hey all, I've come to titanium after getting bored of writing painfully long obj-c, I'd say I was intermediate in the skill level of obj-c so am able to understand a reasonable amount. However, I'm absolutely stumped when I'm wanting to learn how the...
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...
Exclude TableViewRow from TableView with Search
I have a TableView with a SearchBar attached to it. I would like to include a TableViewRow at the bottom that shows up regardless of the current search query. I am able to add the TableViewRow but it doesn't show up when a search term is entered, I also...
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',...
Shorten URL send with createIntentChooser
I want to shorten the URL of the message i want to share. i am using "createIntentChooser" to select the client i want to use. If i use a twitter client somethimes the url is to long. how can i shorten this within my code? has anyone got an...
NoClassDefFoundError on app after install/download from Android market
Built and installed application on Android market. Downloaded to device and it closes upon startup. ~~~ NoClassDefFoundError: org.appcelerator.titanium.TiVerify ~~~ Has anyone experiences this?
Embedded PDF Viewer For Android
Just want to share this. Since android doesn't support PDF viewer, anybody can easily render pdf document by using google viewer service. For example the...
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 1 … 726 727 728 729 730 731 732 733 734 735 736 … 955