Community Questions & Answers
Android MarketPlace issues
I cannot get my app, built with Titanium, to show up in the MarketPlace on a device. I can find it via web portals to the MarketPlace, but never in a device or simulator. Scanning the QR code from the app listing on a web portal tells me the app is not...
Android: Touch events working in simulator, but not on device.
Hi, I am using Titanium 1.2.2 with SDK Version 1.5.1. My Android Simulator SDK is 1.6 and on my device I have version 2.1 installed. So now whats going on: I need to react fast to a touch event in a WebView. Since 'onclick' triggers only after 500ms, I...
MySQL security
Hello, Lets say, I connect to a remote MYSQL server using my desktop application, Can other users see the details? - Shaun
Solved white icon box mystery
While researching an issue with submitting my app to the App Store, I figured out why my icon was not appearing on the device. http://developer.appcelerator.com/question/106501/app-icon-appears-as-white-box I closed that ticket, but thought I would post...
Add image to label or view - iPad
In my ipad app I have a list of actions on the left that is just text. I'm trying to add an image to help make it look a little nicer, but when I do, it stretches across the whole view (and label). I tried creating an imageview and then adding that to...
Facebook Share with WebView -> Autoclose
Hi I used the website "http://www.facebook.com/share.php?u=http://website.com" to share a URL. This is just a webview. The sharing works, but I don't know how to autoclose the webview after the user shared the link. Facebook tells me, this site...
Mapview automatic regionFit function
Hey fellow developers, I've just wrote a small function that automatically calculates the proper region for the mapview to fit to, so both ends of a route are contained into the visible area of the mapview. I think people who get their directions from...
iPad Animation Events
Hi there, I have 4 panels I would like to animate (just animates the width and position) however they run in the sequence of the code resulting in 4 different movements. Is there a way of animating the panels all at the same time? Many thanks
Distribution fails validation process
Titanium successfully built my iPad distribution and uploaded it into Xcode Organizer. When I try to Validate the app, I get the following errors: Icon specified in the Info.plist not found under the top level app wrapper: appicon.png Icon specified in...
Fill Image view area with Remote image (iOS)
Is there a way to fill an imageview area (in my case 75x75) with a remote image? I have a tableview of 50 rows. Each row has a thumbnail image on the left. The remote images load in great but they scale the longest side to 75px leaving the other side short...
Upgrading database from iPhone CoreData database
I am working to move my iPhone apps, written in Objective-C, to appcelerator so I can easily write them for multiple environments. I understand this is a complete re-write. These apps currently use CoreData. I am new to appcelerator and I have tried...
adding this.response..... to send a form to an email
My aim is to get a form such as name, email, subject and message in a text field to send to email.php (attached below) which will send off to my email. the problem is that the data from the phone wont make it to email.php as feed back is not shown in...
Mapping between Titanium Folders and Xcode folders
Hi When a project is created by using Titanium, it creates corresponding XCode project having same name and folders;Resources etc. Usually when we write code, we add assets in Resource folder and then refer them in code by just calling their names;(e.g:...
xhr null value
I am getting null value for `xhr.open('POST','http://www.inetwebdesign.com.au/email.php');` and `xhr.send(data);` and i dont know why or how to fix it **my first code was ** ~~~ // // // RSVP response via HTTP POST to php script on server // var...
issue's parsing data from google calendar api json
i'm trying to pull data from a google calendar. however, regardless of how i try to parse the data, i'm getting errors in titanium. here are the two sets of code i've tried + their respective errors attempt 1: http://pastebin.com/zcYMfgri line 130 = var...
Any Good Documentation on How Tab Groups Work?
Just went through a real eye opener on tab groups, and I'm still not really understanding their fundamentals. For instance, in the code segment below (from the post here...
Error/Typo in docs for File.getNativePath vs File.nativePath
this page: [http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.Filesystem.File-object](http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.Filesystem.File-object) It should reference: File.getNativePath, but it currently calls it...
Tab Won't fire original function assigned.
In my app.js, I call a splash screen imageview, and then wait for the user to click. This takes them to a function that has two tabs in a tab group, one for Guide and the other for About Us. The Guide part works great. However, when I click the About...
[ERROR] Could not create the Java virtual machine
Hi. I've just installed Titanium for the first time, and I'm having problems getting the default mobile app to work. I followed the installation instructions and have installed Python, Git, Java JDK, Android SDK, and Titanium Developer onto `C:\Program...
Strange behavior. App not changing with new code.
I am working on my first app and everything was working a couple of days ago, then I did not work on it for a few days. now I am back to it but I've run into some strange behavior. As I am editing the code and launching on titanium to test the app is not...
Remote MySQL and JSON
Could someone please shed some light on why this code only pulls the data from the first field and not the second field? The MySQL db has one table with two fields called 'cat_name' and 'colour_name'. Only the cat_name field data is being returned. Not...
Couldn't find adb.exe or android.bat in your SDK's tools directory
Hi, I am attempting to use the latest Android SDK: Android SDK Tools, revision 9 Android SDK Platform-tools, revision 2 Documentation for Android'Honeycomb' Preview SDK, revisioon 1 SDK Platform Android 2.3.1, API 9, revision 2 In edit profile...
Eventlistener for a imageview inside a scrollview
Hi all, What I am trying to do is have a click event on a imageview inside a scrollview. When the item is clicked I want to do something, but the click event is not being fired. Any ideas? Thanks in advance! ~~~ var win = Ti.UI.currentWindow; var...
Custom segmented control needed
I need to implement a [segmented control](http://developer.apple.com/library/ios/#documentation/userexperience/conceptual/mobilehig/UIElementGuidelines/UIElementGuidelines.html#//apple_ref/doc/uid/TP40006556-CH13-SW27) on both iOS & android....
Unknown or Unsupported SDK Version?
Suddenly, the Developer (immediately after booting) is displaying the error messages below. Why did this start all of a sudden? (Environment: MAC OSX Snow Leopard, 8GB Memory, Titanium Developer 1.2.2. Apple IOS4 SDK.) [INFO] Compiling...
Facebook Session Expires Quickly
Hello, I'm having a rough time with facebook in my module and was hoping someone could help out. Here are the two things that i'm seeing happening: * Any time the app is closed (like if you force quit it our the multitask manager kills it) it logs the...
iPhone Contacts listing crashs on iPhone
Okay, Mobile SDK 1.5.1, Ti Dev 1.2.2, Mac OSX, building for iPhone 3GS 4.2.1. Runs fine on sim, fine on android, crashes on iPhone. Simple to recreate ~~~ var contactList = Ti.Contacts.getAllPeople(); (iterating.. using c as iterator, there is at...
App Icon appears as white box
This is only happening when install the app on a device using Run on Device. The icon on the iPad appears as a white box. I've tried deleting the build directory, the app in iTunes, and off the iPad with no success. The icon does appear in the...
Listener not reacting? Help please?
I am programming an App on the iPhone, with Titanium Developer 1.2.2. My app.js simply calls an image (splash screen), then on a click will go to the main win: ~~~ Titanium.UI.setBackgroundColor('#000'); var win = Titanium.UI.createWindow({ title:...
SQL query incorrectly returning no results
Hi all, I have an app that is trying to pull data from a local database. I've connected to the database and can pull data when the SQL query is based on the primary key but I've been trying to run the same query on a different integer column and it...
Custom map image. Is it possible?
I have custom image maps I would like to show in front of Google image maps if the user is on the correct geographic location. There is a way to show my own images inside the map view? The desired platform is iPad.
text (label) added to scroll view doesn't resize to the new orientation
I suppose it's an easy question for good developers... I created a label containing a big text needing a scroll view. I added the label to scroll view but, when I change orientation (iPhone simulator) the content doesn't resize to the new orientation...
when will the module market place be open?
we're currently using appcelerator to develop a number of applications for my company. We're very impressed with everything. A recent requirement is the need to capture digital signatures which titanium currently can't do. There is a paint module in the...
Geolocation can't get coords on Android Emulator
Running the code below on the Android emulator I get an error: "Cannot read property 'longitude' from null" I have tried using "geo fix -123.132174 49.287993" via telnet and sending coordinates to the emulator using ddms and still get...
How to prevent leftNavButton from flashing, blinking?
Hello, perhaps a stupid question but this is bothering me since a few months. Whenever i use a custom back button for the navbar, the button flashes (fades in) on window focus. Even when i navigate back to a window, the leftbutton flashes shortly. These...
DB.execute is not flexible enough
I'm adding Titanium support for persistencejs (https://github.com/zefhemel/persistencejs), which is a really nice ORM for javascript. I really feel that this is the right ORM framework for Titanium apps, and I'm planning to do a little write up/tutorial...
required jarsigner not found (gist details included)
Hi, When I try to load the kitchen sink in the Android emulator I'm getting the following message repeated twice: ================ Required jarsigner not found. Required javac not found. Required java not found. One or more required fields not found -...
Changing .app file name within Titanium
Hi My app name is ,say,"Good App". Now Titanium is making it's app as Good App.app. Now I want it to be as GoodApp.app but display name should remain as "Good App". How can I achieve both things? Thanks
Tab Stack Issue - Back Bar Stays Open
I have a little app I'm just beginning to work on that's mostly an informational one. The first thing it does is bring up an imageview for the splash screen, waits for a click, then loads the first screen. The first screen has two tabs (Guide, About Us)....
image Upload
Hello sir, here i need to after capture the image , the captured image is send to the webserver and added to the database.
Create ImageView Dynamically Not Working....
I am trying to create an ImageView dynamically. When I create a single ImageView it works just fine. I can also create a dynamic ImageView okay, but not with the ability to drag and drop it. When I place the "olt" arguments on to the ImageView...
Is there a way to make openPhotoGallery show ONLY pictures, and not videos?
Right now, Titanium.Media.openPhotoGallery shows the user all of his photos and videos. I want it to only show his photos. Any way to make this happen?
open local js file in splitview
In my iPad app, I have the master on the left with some links, and a details on the right. I'm trying to make it to where I click one of the items on the left and it opens on the detail. Here is my code so...
JAVA PATH
I am trying to test just the operational side of things and I get this error when I launch the empty test app thing: [ERROR] Error locating JDK: set $JAVA_HOME or put javac and jarsigner on your $PATH I know for a fact that javac and jarsigner are both...
createHTTPClient: Cannot call method or undefined android - sdk 1.5.1
Hello, I'have tried just this little code: ~~~ var xhr = Titanium.Network.createHTTPClient(); ~~~ and this one too: ~~~ var xhr = Ti.Network.createHTTPClient(); ~~~ but I allways have this error: "Cannot call method or undefined" Somebody...
Form send to email address
I am trying to send a form to an email address. titanium works fine ~~~ [INFO] Response_JASON: {"name":"bob","email":"Carahdose@gmail.com","subject":"this is the...
Navgroups and titleControl
Using 1.5.1, with iOS 4.2. I cannot for the life of me get a button to consistently populate the titleControl of windows as I move through them with the navgroup. I've tried everything, from passing the button to the new window, to setting it before the...
Clock Function Updates in iOS, but not Android
So I'm trying to code a clock into a tab on my app, however I can only get it to update on iOS but not Android (1.6 and 2.3.1). Here's the (truncated) code I'm using in my app.js file: ~~~ function kiTime () { //Get current date and time var...
Changing only one label attribute on Android
I use the `if (Ti.Platform.name == 'iPhone OS')` a lot but it only works with single commands. However sometimes I want labels to look only slightly different on Android, but I don't want to have to recreate the whole label for Android. For...
high resolution tab button graphics?
Does anyone know where I can get high resolution tab graphics? The default ones that come with the kitchen sink are low resolution and look terrible on the iPhone 4 scaled up. KS_nav_ui.png, etc. Is there a website out there dedicated to openly-licensed...
Showing 37,001-37,050 of 47,661 1 … 736 737 738 739 740 741 742 743 744 745 746 … 954