Community Questions & Answers
mobile sdk 1.5 strange behaviour
Hi, I run into strange problems with SDK 1.5 on Android: 1. imageView will scale it image to fill its container, 1.4 is fine, but with 1.5 , images messed up 2. TableViewRow can not change rightImage, the rightImage can be set at creation time, but if I...
Android Cloud To Device Messaging
Is there any way to do push notifications on android (http://android- developers.blogspot.com/2010/05/android-cloud-to-device-messaging.html). I'm not sure if this is supported by titanium. And in case not, what alternative do I have?
How to switch off geolocation
Hi, I'm using simple geolocation call on the iPhone by calling `Titanium.Geolocation.getCurrentPosition` to get the current position. I can see the geolocation icon in the status bar when I call the above function. I'm not using any event listeners...
Titanium.UI.setBackgroundImage don't work on Android
i am trying to add main background to the app ~~~ Titanium.UI.setBackgroundImage('img/background.png'); ~~~ it is work fine on ios but on android it throw error in application Example:...
Local Push Notification equivalent for Android
My app needs to be able to use local push notifications. As this is iOS specific is there an easy way to emulate this on Android with Titanium 1.5? Is there such a general purpose local notifications mechanism in the native android os? -m-
How to include a file from a parallel directory that is used in many places.
My file structure looks like this: ~~~ - "Resources" Folder - app.js - "includes" Folder - utilities.js - server.js - "views" Folder - serverview.js ~~~ App.js uses "includes/server.js"...
Android Emulator Issue with Kitchensink App
I'm sure this is related the Andriod SDK but when I try to run the Kitchensink app this is the error I get. Emulator pops up but is not responsive. New to Titanium, thanks. [ERROR] Error in compiler. <type 'exceptions.KeyboardInterrupt'>, ;...
Swipe on Android scrollableview doesn't fire
Why not? I can't get it to fire anyway. Is this only for iPhone also? ~~~ var scrollView = Titanium.UI.createScrollableView({ }); scrollView.addEventListener('swipe', function(e){ alert(e.direction); }); ~~~
Rss feed comes in blank but ti says feeds retrieved
I'm using the kitchen sink rss code and a feed burner xml feed. Titanium gets the name of the feed, also says there is 10 loaded but the screen is blank. Like the font color is white but it isn't. Any thoughts? Thanks,
Background Image for TableView not working (all the time)
I have a window (part of a tabview) that has a background image. That window then has added to it another view and a wrapper view that contains a table view. All of the views have backgroundColor set to transparent. What is VERY strange is that my...
SQL FOREIGN KEY REFERENCES on Titanium (Mobile)
Apologies for duplicated posts. Please...
Does SQL's FOREIGN KEY REFERENCES work on Titanium (Mobile)?
Apologies for duplicated posts. Please...
Does SQL's " FOREIGN KEY REFERENCES " work in Titanium (Mobile)?
On Titanium (Mobile) can you define a column in one titanium database table as a foreign key referencing a Primary key in another table? Or are there any other elegant ways to ensure key integrity. This doesn't seem to work: ~~~ // ...
Quick event-listener question
I've developed a really simple Recipe app -- read only for now. I want to add a shopping list feature in a new tab. I figured it was a good time to organise my code a bit better, so my structure is now like so: ~~~ app.js (set up 2 tabs) ...
Android not installing database
I can not get a database to install for android. As soon as the app launches it comes up with "Cannot call method "execute" on null." I've renamed the database with an extension of mp3. I've also tried using ddms to put in the database...
How to set up landscape views
How can I set up my windows in a mobile app so they adjust and look nice when in landscape mode? Is there an example in KitchenSink for landscape?
Disabling Gradient on the SearchBar
I'm trying to utilize the SearchBar, calling the following: ~~~ var search = Titanium.UI.createSearchBar({ backgroundColor:'transparent', showCancel:false, height:43, top:0, width:450 }); ~~~ I'm trying to use this in the iOS...
Looking for a freelancer
Hi, We are looking for a freelancer to develop a simple Android application which contains : 1) Splash screen 2) Menu screen 3) 3 Data entry screens (about 8 fields each) 4) 2 Info screens (labels) 5) 1 "settings" screen, which saves the...
window 7 - [ERROR] Error locating JDK: set $JAVA_HOME or put javac and jarsigner on your $PATH
Hey Guys, how do you fix this issues in window 7 "[ERROR] Error locating JDK: set $JAVA_HOME or put javac and jarsigner on your $PATH". im using Titanium Developer 1.2.2 Titanium SDK 1.5.1 for android. thanks, Curtis Allen
Prevent popover from "auto hiding"
Messing around with popovers in an iPad app, and it works great. Only trouble is that if I touch on any part of the screen outside of the popover, it automatically closes it. I need to prevent this behavior as I will have a Cancel button the user should...
setTimeout crashes app
Hey! Does anybody know whats wrong with my timeout? ~~~ var timeOut = function(){ alert("ALERT!"); } setTimeout (timeOut(), 5000); ~~~ The alert does fire but the app crashes. Thanks!
Install Error
I'm getting this error when trying to compile my project using OS X 10.6.6 ~~~ Install Error Error: Traceback (most recent call last): File "/Library/Application Support/Titanium/mobilesdk/osx/1.5.1/iphone/builder.py", line 1143, in main ...
kCLErrorDomain error when opening app, help!!!
received notice from multiple customers of my app purchased through the app store that when they open the app, they get that error. here's the most recent email from someone ~~~ When opening the App I get an Alert saying error: "Error...
Titanium.UI.currentTab is null?
I have copied code straight from the KitchenSink to create a 2 tab setup. My program navigates between the 2 tabs perfectly. The 1st tab is just a label displaying text, the 2nd tab is a TableView listing menu items. It currently has 1 item on it. When...
1.6 Emulator Issues (GPS related)
I have an app that I started building on the 2.1 api and now was testing it on the 1.6. It seems to hang / crash when trying to run some of the GPS related code. As a test I opened up Google Maps on the emulator, when I click "My Location" it...
Start with files in Application Data Directory
I know that I can show the location of the App Data Dir by using: `Ti.Filesystem.applicationDataDirectory` But what if I want to have my app prepacked with some documents in this directory? Is there a place I can put them so they're included at build...
How do you log/view the potential sql string from db.execute?
I have a complex sql string that I am pretty sure is causing my app to crash. However, I have no idea how to view what db.execute is trying to use as a querystring. Is there any way to log this information prior to it running? Or even while it runs?
Text wrap around image?
Is there a way to make a label wrap around an image? Thanks, Matt
mapView & GeoLocations questions
Hi! I´m relative new to Titanium and it´s features and i have recently started a new project involving usage of the mapview and geolocation. I have tried a number of different code sippets to get it working but all i get is error messages. I´m...
Need Expert Guidance for grab Device Info from App.
Hi All, I would like to grab below values in my Titanium based application, Would you please let me know idea using which API\Methods i can get below values. Phone Number , Device Language , Device Model & Manufator, Device Firmware\OS, Connectivity...
Titanium SDK build pitfalls
This is rather a tip than a question - I decided to share it as it costs me some hours: I'm working with several SDK version, 1.5.0, 1.5.1, 1.6.0 and so on. I ran into trouble, that my changes to the sdk where not reflected after rebuild. Pro Tip: Never...
Android map icon
Hi, I'm looking for a way to add My Location on my application. At the moment only I can do that adding an annotation with my current position, but my idea is use the same My Location from the android map, which has a flashing icon. I don't know if it's...
Why won't camera work in the emulator?
From the reports I've found, the Android emulator does not support the camera right now. Why is this? I found a bug in how Titanium builds AVD files (the hw.* lines are all on one line) and patched it, but am having trouble getting the camera to run in the...
Can I use my own API?
Hey, I'm sorry if this is a simple question. I have a web application which accepts data trough a REST API. Can I use appcelerator to develop a iPhone app that GET/POSTs data from the application? Regards, T
Creating a web server
I'm interesting in created a web server on the localhost run from within my iPhone application. I've seen many apps do this...the local web server acts a method to get files from the iPhone onto a desktop computer through a browser. Does Titanium support...
Picker on Android not showing up on real device (Samsung Galaxy S OS 2.2)
I used picker and set useSpinner flag to true. It was working well on emulator but when testing on real device, it is not showing up. Here's the complete phone specs: Device: Samsung Galaxy S OS Version: 2.2 SDK Version: Titanium Mobile 1.5.1
Top corners of tableview are screwed up
I have a grouped tableview on iPhone. When I add a background image to the tableview, some garbage shows up in the top corners. How to clean this up? http://www.cornerstonesolutions.nl/tableView.png ~~~ var tableView = Titanium.UI.createTableView( {...
One codebase for multiple platforms - Best Practice?
I have a fairly large codebase for an Android/iPhone app, and I'm hoping to hear some suggestions on best practice for keeping the code as clean as possible while supporting multiple platforms. In KitchenSink, the following is fairly...
Webview performance vs Titanium & JSS Performance
Does anyone have any experience with the performance differences in webview and titanium views etc? I am planning an app which will require several basic animations which will changed when tapped. I was planning using gif animations in webview but after...
How to
Hello, I'm using TCPSocket connection, it works fine. But when I send two or more message like this: ~~~ if ( socket.isValid ) { try { socket.write("login root root\n"); socket.write("info ?\n"); tf1.value =...
Android device: HTTPClient POST parameters missing
I am working on an Android app, and have run into a problem where my POST parameters are being omitted (or stripped) from my HTTPClient during the send. This is my code: ~~~ //loginClient is an instance of Ti.Network.HTTPClient loginClient.open('POST',...
Resume event not fired on unlock
Hi! I am currently working on an app that check for GPS data every X mins/seconds. I use the "pause" event to stop it while the app is in background and resume it with "resume" event. No problem there. The problem is when you lock the...
Waiting for an HTTP Client to finish loading?
I am trying to build an app that is 100% based around getting information from web pages. I am brand new to Appcelerator. Right now according to my logging, my app tries to get the information from the web page, then leaves the function and displays that...
Building layout using Interface Builder
I am a visual guy, so I need to be able to layout my labels and textfields using a WYSIWYG editor. What I've been doing so far is using Interface Builder for layout to get the x/y values. It works fairly well, although I've noticed that where IB says x/y...
Objective-C files
I am developing a IPhone app using Titanium. Can I also add and link some objective-C files to my titanium project ? If yes then how may I do so? Thankyou.
Appcelerator always asking for updating
PLEASE HELP It's annoying whenever I start Appcelerator, it always updating. I uninstall and reinstall again. It still give me the same problem. I am on Windows 7 machine, with update to SDK 1.5.1 Please help
Could not get coverflow image to view
i could not see the problem in this code. maybe someone could help me Please view the code here:- edit: sorry my mistake.. simple dumb mistake... Thank you.
Local Notifications needs more tools to be manipulate on iOS
Local notification should have more methods to be manipulated! it's not possible to retrieve an old notification once the application has been closed and re open. So, it's not possible to modify it, or cancel it..
Facebook set status
I'm trying to set facebook status using status.set and stream.publish inside Titanium.Facebook.execute(). I have studied the KitchenSink example and read the documentation...
Window sub-context rendering
I am using windows with sub-context feature through out my application. When navigating from window to window, i just use open function and to get back i call the close function. When the new window shows, it starts blank and the controls render one by one...
Showing 37,901-37,950 of 47,759 1 … 754 755 756 757 758 759 760 761 762 763 764 … 956