Community Questions & Answers
small Facebook login window on Titanium 1.6.0.RC1
Hello, I am currently working on the integration of the new Facebook login button (on Titanium 1.6.0.RC1). The problem is that, for the login, a new window is displayed, and my app is completely hidden by this window. I would like to open the login view...
Publishing Apps in Windows
Hi there, I am new to using Appcelerator, and have recently downloaded Titanium Developer for Windows. I have built a very basic app using Javascript, but when I go to test the app within Titanium Developer nothing happens. Am I missing something else...
TableView with imageview and labels
helo all in the tableview row i attach the image and contains two label text, in iphone its successfully added but in android the label text is not added to imageview in the row what is the problem can any one tell me , here the sample code var...
Error loading KitchenSink on Android Emulator
Hi, I get the following error on my MAC loading the Android version? [ERROR] Failed installing com.appcelerator.kitchensink: pkg: /data/local/tmp/app.apk Any idear? Thanks.
Running StatusNet app in Titanium
I am trying to run StatusNet downloaded from http://www.gitorious.org/statusnet-client on Titanium Developer 1.2.2 on ?Mac OS X 10.6.6. The Titanium SDK is 1.5.1 and I have downloaded the latest iOS SDK + xCode from Apple and Android SDK from Google. I am...
Memory leak in Android?
Hi, I'm using APIs 2.2 and Titanium 1.5.1 to program for android. I have to add / remove views dynamically to / from a scrollView, in a single page. There seems to be a memory leak. Everytime a view is not required, I will remove it by calling...
Styling a switch
Is it possible to change the color of the switch. I tried the kitchen sink but no examples of changing the color. I tried the various properties like backgroundColor, backgroundImage , and backgroundSelectedImage with no luck. I thought the...
Rapid Clicking
I am looking for a solution for rapid clicking. It seams that in android it interprets two quick clicks as a double-click (which make sense). But ideally I'd like it to fire the click event twice (the way it works in iphone). Yes, a work around is to make...
Javascript inheritance with Mobile API objects
We are running into issues when trying to extend Titanium objects using any of the typical techniques one uses for "structured" Javascript. In the examples below, we're using [Parasitic Inheritance a la Douglas...
Problem with multiple video instances
Hi, I'm having a problem with displaying multiple videos. Specifically, I'm displaying multiple videos in each view of a ScrollableView. Strangely, the first video does not show. I know it is not a specific video because I've changed the order of them and...
saveToPhotoGallery
Ok...so far the API, KitchenSink and the Q&A has helped me solve all my issues until now. - First tab (window) that i use to get a photo from the gallery...works - Second tab (window) that a user inputs text...works - Third tab (webview) that...
[BUG] Contact issues on iOS with Ti Mobile 1.6
There are a couple of issues that I have found with the Mobile 1.6 SDK, and iOS 4.2. 1) Cannot pass contact object by reference: The following crashes ~~~ var retVal = null; var contacts = Ti.Contacts.getAllPeople(); for (var c=0; c < contacts.length;...
Facebook permissions in one step
I'm using 1.5.1 and permission happen in two steps: 1 - once when the initial login happens. 2- and then I ask for extended permission...
Issue with coverflow
Hi I'm fairly new to Javascript and even newer to Titanium (although loving it so far) but struggling with this. So i've created a coverflow of multiple images when clicked on open a modal window showing a different image. Although the coverflow works fine...
facebook graph api - call backs
I have used this code An [http://developer.appcelerator.com/question/105841/facebook-new-api] link to get the access token, but being new to Titanium and Lua, I'm not sure how to: 1- add success_callback 2- to access the token from else where in my code.
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...
Showing 36,351-36,400 of 47,586 1 … 723 724 725 726 727 728 729 730 731 732 733 … 952