Community Questions & Answers
Question on titanium api
So I am trying to find information on the 'returnKeyType' property. I searched the API for it and nothing came up. I understand that the API isn't complete yet, but how or where do I even look that up if it isn't the API? How do people find these...
webview 'load' eventlistener broken?
Since updating to 1.5, any of my webview 'load' event listeners no longer fire. 'beforeload' and 'error' work fine, but load doesn't. Anyone else experiencing this?
Set Ring Mode on Android
Hi, Is there currently a way to programmatically change the ring mode on an Android device with titanium? I know that it is possible with Android (unfortunately not iPhone), but is it implemented in the mobile api yet? If not, where can I suggest this...
custom setRightNavButton button not showing on device
Hi I have had no reply to my previous post so I thought I would up data on a new post. When run my app on the simulator the win.setRightNavButton(loginBt); works fine. But when I run my app on my device the win.setRightNavButton(loginBt); operates on the...
win.visible retunrs undefined
The API docs sepcify that the Window object has a visible property. However when I try to view the property value it returns undefined, in SDK 1.4.2 and the continues build from today. Any idea if this is a bug, or i'm doing something wrong? This is for...
Packaging for Mac OSX
Hi! When I package my app for the Mac OSX I always get the same version to download even when I change the code or give the app new version number. Anybody has any experience with that?
RETURNKEY_NEXT not going to next text field
I have 5 text fields in a window. The returnKeyType property for each text field is RETURNKEY_NEXT except for the last one. That one is RETURNKEY_DEFAULT. When I hit the next button on the keyboard, it just closes the keyboard and doesn't go to the next...
How to play sound backwards
Hi I need to play a created sound backwards. Is this possible in Titanium at all?
Android VS iPhone orentation
Orientation on iPhone was a breeze. Worked straight away. But after two days of reading and trying and fixing, my code when running on Android device or emulator will not pick up the orientation change... Feels very frustrating when i know the code works...
Background Audio Controls
Now that 1.5 has been released and it sports "Titanium.App.iOS.BackgroundService", can this be used to handle audio playback? It is nice that we have been able to play background Audio since 1.4, but not beeing able to stop playback without...
Android Webview Copy Link with Long Press?
Is there a way to enable the functionality seen with the brower where I can press and hold on a link and get the option to copy the URL or SHARE the url? I'm not able to get that to work with Webview within the emulator? Is it an emulator issue or does it...
slide up window
I was wondering how to slide a window up from the bottom. Kind of how the notifications work in the facebook app. You click 'Notifications' on the bottom of the device and it scrolls up
SMS Dialouge for iPhone - Source included
If anybody is interested, I've put together a small SMS class that allows you to access the SMS iphone dialogue within titanium. This was added to iOS 4.0 and allows you to present a modal window within your app and pre-populate the to address and the...
Android emulator constantly rebooting
Hi there, and thanks for reading! After switching to Titanium 1.2.2 and Mobile SDK 1.5.0, I've noticed some erratic behaviour on the Android emulator: - emulator restarts with no reason, sometimes after a runtime error, sometimes right after launching my...
createWebView throws exception
Just getting started with Ti and I've created a simple navigation based app. On the first page is a grouped table list. The user selects an item that creates a new window and adds it to the stack. This window should display a web view, but it crashes...
Forcing installation of Titanium SDK 1.4.2
Hello, I recently purchased a new Mac and would like to use the 1.4.2 SDK instead 1.5.0 (my app won't work with it). The app still runs fine on my old Mac when compiled with 1.4.2, so if I can install 1.4.2 on my new machine, I can continue working on my...
Android JSS Bug - Not Applied From File Includes
Trying to use the jss feature with 1.5 and have run into the following issue. If a file is included from app.js and creates any type of UI element, the jss properties are not applied at all for Android. It does however work just fine on iphone. Here's a...
Packaging Apps / Installers
Maybe there's documentation for this somewhere… I love the fact that Appcelerator offers the cloud packaging service free of charge for us to use. However, I don't always want to have to depend on it. Given that I have Windows, Mac, and Linux...
Are events asynchronous?
I have an optionsDialogue with a tableview. When the option dialog button is clicked I run an event listener to process through the tableview - however it doesn't work. Based on debug it appears that each time I run I get different results (as if the...
JSS working on iPhone Simulator and 1.5 GA?
I can't get it to work. Anyone else that got it to work? I created a global.jss file with: ~~~ #forecast-row { height: 70px; } ~~~ And a table row like: ~~~ var row = Titanium.UI.createTableViewRow({ id:...
OMG is the Database "Global"???
OK, so I was really happy Apple approved my first app...till...users started using it. I was using Titanium.Database as a way to store user information. I thought that information was only being inserted into a .db created on each user device...but...I...
Not include Android SDK
Hello, Is it possible to create a new mobile project without including the Android SDK as I won't use it for now? Thanks.
how to deal with sessions and login
hi The type of application i am building will require a login, kind of like dating apps do and rss etc but cant find anything in the tutorials or docs that relates to this whole field, especially when it comes to things like: if not logged in dont show...
Ti.Filesystem not working in 1.5.0
Hello, As I can't make the Ti.Locale.getString() function work whatever I do I tried to re-create it with a simple xml file and a custom function. But when I try to load locally my xml file I always get the same error: > [ERROR] Script Error = Result...
Use of Background Service, to set a timer, for an alarm ?
Hi, I am working on an app, which creates alarms for the users, I want to create a background service, which keeps on running and show the alert to the user when the time arrives, takes time data from the DB, I want it to work even after the app is closed....
Titanium Developer won't start
A fresh installation of Titanium Developer won't start, I get the 'Titanium Developer appears to have encountered a fatal error and cannot continue' dialog. Here are the contents of my tiapp.log if I run with --debug: http://pastie.org/1382654
Build Problem - iPhone Simulator
Hello, I'm getting the following error when trying to compile my app: [ERROR] Error: Traceback (most recent call last): File "/Library/Application Support/Titanium/mobilesdk/osx/1.5.0/iphone/builder.py", line 1003, in...
Android: custom AndroidManifest.xml
Where do I put my custom manifest xml now with Titanium SDK 1.5? When building it says I have to put it under the platform/android directory, but where's that? I couldn't find any references in the programming guides.
crop/clip image (module from Kosso )
## how crop image? i've found this module http://gist.github.com/621367#file_image_as_cropped to crop image. i copy the crop code in this file (/Library/Application Support/Titanium/mobilesdk/osx/1.5.0/iphone/Classes/TiBlob.m). ~~~ // Kosso...
[iOS iPhone 4] Camera overlay bug?
I'm trying to add an image overlay to the showCamera(). showCamera() itself works fine. But when I add (any) overlay, the showCamera() view seems stretched out vertically. (tap to focus area is not a square space, but more like a rectangle) When I take...
Module with custom library
I'm creating custom module for iphone. How do I add several frameworks and also custom library in the module.xcconfig file? I put following line into module.xcconfig: OTHER_LDFLAGS=$(inherited) -framework AddressBook -framework UIKit...
Platform-specific Resources broken?
Hi, using 1.5.0 I found that platform-specific resources does not work for me with iPhone. Lets say we have this code: ~~~ var tab1 = Titanium.UI.createTab({ icon:'KS_nav_views.png', title:'Tab 1', window:win1 }); ~~~ Following [this...
TI Developer Reset?
I have deleted a project and would like to reuse the application name. But for some reason I am not able to use it. TI is working and I can create the project using a different name. Looks like the original name is linked to the previous definition. Is...
Open Web Page in Browser
I'm wondering if it's possible to create a IPad application that essentially opens a web page within a contained browser that has forward/back navigation buttons (like the netflix application). I've started by using a WebView, but I've noticed that this...
Titanium doesn't work on my Windows 7
Hi I installed (on my pc with windows 7) titanium to develop applications for Android ... But when I log in the main panel and create a mobile project, Android SDK that is not there (there isn't the option). is also the message "Java not found...
Traffic interception possibility
Hello, I'd like to create a desktop app which needs to intercept my network traffic. To be more precise, let's take an example. Let's assume I well know MSN protocol for instance (in reallity it's not msn but an application I've done, anyway the problem...
Size of created iphone app
As my first task on using Appcelerator I compiled an empty project. I've looked at the iphone output - in the build directory - and am surprised at the number of files created by Appcelerator. Is this how it works? Any way to reduce the footprint?
android sdk
I ve downloaded the android sdk but appcelerator cannot recognise it. I've not used android before so there may be something in my ignorance I'm overlooking. Help appreciated!
android.bat not found
I just installed Titanium as described in the installation documents... as required, I installed the Android SDK and it's all there.. I checked and tested it.. Now, when I try to set Android SDK location in the Environment Settings of the Ti Developer...
Error on launch
Hi, I have just installed titanium and trying to build hello world project. I have only created an empty project and trying to build it but I am getting following error when I press launch button: [ERROR] Error: Traceback (most recent call last): File...
Opacity of labels not working (Android 1.5.x SDK)
Opacity of labels is not working on Android (1.5.x SDK)
How to get rid of the top shadow
In Android the main window has a top shadow of about 5 pixels. Is there a way to get rid of it? Modal windows don't have one!
Android: Titanium.Network.online not working
Tried: ~~~ Titanium.Network.online Ti.Network.online ~~~ Neither of them works. I get ~~~ Cannot read property "online" from undefined ~~~ What the ..? Using Titanium SDK 1.5
continuous builds on osx help
hiya im new with this and osx all at the same time, i have just downloaded the 1.6.0 from continuous builds, may seem a little lame put can someone please advice how this is built or installed and registered into titanium. many thanks
Override default tab animation
The default tab animation is from right to left. I want to make this animation from left to right. Is it possible. Please anyone help.
Titanium.Locale.currentCountry == null
Hi, Ti.API.info(Titanium.Locale.currentCountry); gives med back null in the iphone simulator. Any ideas?
How can I use
Hello. I want to use this on Android. ~~~ Ti.App.addEventListener('resume', function(){}; ~~~ But it doesn't work on Android. Are there any other ways to do the same thing with this code?
Can not call createHTTPClient Is undefined
Hi All, I have found error while calling webservice,createHTTPClient Is undefined, please help me out. Below are the code sample. Thaks var xhr = Ti.Network.createHTTPClient(); xhr.onload = function(e) { Titanium.API.info('xml ' + this.responseXML...
Creating DB on Android throws "cannot call method 'open' of undefined"
var ThisDb = Titanium.Database.open('MyDb'); Message: TypeError: Cannot call method "open" of undefined any idea why? works fine in iOS Trace: http://dl.dropbox.com/u/1498261/Android_Db_Create_Error.txt
Window Child Animations
Hey guys, How are animations on child views handled when a window is closed? Are they paused/removed or do they continue to run/exist? Thanks
Showing 38,401-38,450 of 47,483 1 … 764 765 766 767 768 769 770 771 772 773 774 … 950