Community Questions & Answers
How to set MinimumOSVersion to 4.0?
Hi! My app is already up on the app store. But it seems to have compatibility problems with iOS 3.1.3. Everthing works fine with iOS 4. So how can I set my minimum os version to 4.0? I already tried it with Xcode. But when rebuidling the application with...
bazp
How do I format Titanium community version as a mobile project. I am using the Android emulator. Sorry I am brand new to the group.
PHP script fail - Cannot redeclare function
I declare the function by including it with php script tags. Like this: "include("php/game-functions.php");" When I go to call the function in a jquery click event it fails and says I am redeclaring it. The error says previously...
JSS backgroundGradient
How to set the backgroundGradient property in JSS file.
Is it possible for an application to work in background?
Hello. Now, I'm creating chat application, and I want to get an alert while the application is closed, when I get a message. How can I do it?
What iOS SDK versions are supported?
I've looked around through release notes and documentation, but can't find any mention of which iOS SDK versions are supported by which Titanium SDK versions. Specifically I'm wondering which iOS SDK I should be using with Titanium Mobile SDK 1.5.1
Vibrate During Background Service
After creating a background service using 'registerBackgroundService', I am trying to make the iphone vibrate. It is not working. I can see that my code is running without error, but still no vibration. Is vibrate specifically blocked when an app is...
Layout horizontal scrollview
Hi, I'm trying to add labels with different widths in a scrollview. I tried to calculate the left dynamicly by using width but it returns an error on android ( works fine on iPhone). I tried to to add the property layout : horizontal for the scrollview but...
Recommended way to use HTTPClient
Hi -I read in many posts some problems regarding HTTPClient, such as memory leak and onload not firing. My iPhone app requires frequent small requests and I am worried about these issues. Could somebody post the definite way to use HTTPClient for the...
Error in Compiler Issues / Unable to Create New Project
This morning, mac-mini (pre-configured, working @7pm last night) and I'm getting strange issues. I've used Appcelerator for almost 1 month. Here are the weird issues I'm having. Create Mobile Project - Attempt to debug/test error below. Attempt to...
Move elements around
I'm trying to make an application where I can select one of many views and drag it around, and do a resize of the element. Then I can select one of the others views and do the same. Is this possible? Currently I have just achieved this with one element,...
Representing TableView as Rows and columns
Can we structure TableView as a normal table (html) with 5 constant heading and data below it. <br /> I have the following json:<br /> claim:[<br /> {<br /> productorservicename:'METHIMAZOLE',<br...
App in Background + status icon?
Hi, Is it possible with Titanium to run it's mobile application in background? Is it possible to send/receive data while it's in background (and also display an icon in statusbar as alert) Thanks a lot
Map Route disappears when zoomed in.
I believe I have stumbled upon a problem with the current route function in Titanium, the route will only draw on the map if you have zoomed out a sufficient (seemingly arbitrary) amount. The following example app.js I created (for testing) shows the...
iPad app not compiling
It always seems stuck at the "Building, one moment", and just sits there. I've created a new project without any modifications, using 1.5.1, and sdk vesrion 4.2 (and 4.1,3.2), and all of it does the same thing. I've deleted everything out of...
Multiple Local Data methods Strategy
My app has a local SQLite database of widgets. As the user views widgets, I'd like to save a simple list of "recently viewed widgets". I could easily store the "recently viewed" data in the SQLite database, but then that data would be...
iPhone App Build Fail / not installing on simulator
Hi, Running the latest build from continuos server (1.6) 27th Jan. Fresh install of X-Code w/4.2 iOS SDK. On Mac (of course). No problem building with Ti for Android, no problem building with XCode for Apple. When I try to create a new, vanilla project...
Google Adsense -> open in Safari
Hi I have a Google Ad in my app, when I click on it, it will be automatically fullscreen, so the user can see the content. But I think, there has to be a "Open in Safari"-Button. How can I make this? On the Body, I have a onunload event, that...
Scrollableview freezed
I am using code snippet from http://pastie.org/1352978 to dynamically load views but the scrollview is being freezes on scrolling. Further I couldn't understand the use of lastview and selectedPage vars. Can anyone please help?
UDID for android
how to Retrieve the UDID for android but in iphone i got it.
Transparent background for tableView pull header
Do you know how I can define a transparent background for my pull header view. I have tried backgroundColor: 'transparent', but it doesn't work. Is it because I'm doing something wrong, or is there a known issue? My code : ~~~ border =...
custom font support in android
hi, did custom font support for android changed since this [post](http://developer.appcelerator.com/question/73431/font-family-information-fontfamily)?
tab change with fade(iPhone)
hi, is it possible to fade between two 'tab'windows? if you use the 'standard' way of a tabgroub and navigate between them you have a hard 'cut' in the occurrence of the next window associated with that tab. the look i want to achieve is: by clicking a tab...
Use internal css on external html
I am trying to build an app to make my website easily accessible on Android. I now have tabs with webviews that show some non optimized web pages. This is far from optimal so I would like to reformat the pages in a more convenient format. A local css file...
JSS Fontsize
Hi, How to set the fontSize property in JSS file. I have tried but did not work. Also since property is object i have tried it as `font.fontSize: '7'` but no luck `#item { fontSize: 26; }`
Install Error on Run on Device
Hi all, I've re-written an app I've done using native code and have found it really quite easy to do! The app runs perfectly in the simulator, however - when I click "Install Now" on the run on device for my iphone, I get the following...
Programatically change Airplane mode
I'm wandering how to melodramatically change airplane mode. In Api reference I could not find anything about this.
Doc server error
http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.Map.createView andrea
hide/disable tabbar in currentWindow
what is the correct method to hiding a tabBar inside currentWindow?
Cannot play downloaded video from applicationDataDirectory on Android platform
Why can I not play downloaded video from the applicationDataDirectory on Android platform? It works with audio(mp3) but not video(m4v) on Android. **I've tested on iPhone and both audio(mp3) and video(m4v) is working perfectly**. I'm using the m4v video...
hinttext problem in textfield?
[ titanium mobile for android. titanium sdk 1.5.1 ] hi! do you know why I'm not getting the texthint inside the textfield with this code? what am I doing wrong? thanks a. var win = Titanium.UI.currentWindow; win.backgroundColor = '#fff'; win.barColor =...
How to intercept the home button (android)
Is it possible to intercept the home button? The back button can be intercepted by listen to the "android:back" event. Is there something similar for the home button?
Is it possible to change Tab color?
Hello. I want to change my application's Tab color on android. I searched but I couldn't find out how to do. Is it possible to change Tab color?
How to end an android app (controlled)
I read several Q&A to this but nobody gave an exact answer. I don't want to discuss if this is useful or not; interesting is what has come to common. And that is: - the back-button navigates back through the different views and windows and at the of...
TableViews in a scrollableview is disappeared when they are scrolled.
Hello. Tableviews in a scrollableview is disappeared when they are scrolled on android. This is my code. ~~~ var Data1 = []; for (var x = 0; x < 10; x++){ var row = Ti.UI.createTableViewRow({ title: 'Group 1, Row ' + (x + 1), ...
Titanium.Network.online is not working on android emulator
Titanium.Network.online does not yield any result on android emulator, may I know what is wrong? I have added ~~~ <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission...
insert image in php webserver
hai all, How to insert the image in to the php web server.after the image is inserted in to the imageview
Facebook new API
Hey guys, Just wondering if anyone has had any experience using Facebook's new Social Graph API instead of the old deprecated functions included in KitchenSink? Is the process easier or harder than before when using Titanium? Thanks in advance.
TextField in TableView causing window height to increase.
I have a window with a TableView using the group style. There are a few different groups of buttons on the screen, each one being in its own TableViewRow. The very bottom submit button needed to be placed outside of a TableViewRow as (from my...
inserting image in database
how to insert the image from the database from capture from camera
accessing contact email adress crash
i try to access email adresses from the contact database. my code seems to work stable on the emulator, but on the device it crashes. the crash message: Fri Jan 28 01:56:46 toms-iPhone xxxxxxx[5947] <Error>: *** Terminating app due to uncaught...
Error when defining Android SDK
I am encountering an issue when I am trying to select the Android SDK directory after I have upgraded to the latest Android SDK. It seems that Goolg moved some of the Android tools from the "tools" directory to the "platform-tools"...
Adding files to
Hi all, Is it possible to add files to "Titanium.Filesystem.applicationDataDirectory" before building the App? I wan't to have a dynamic image folder, which will contain a lot of images which a distributed with the app. But I also need to be...
Local Notifications "Repeat" argument
Hi, I'm trying to use Titanium.App.iOS.scheduleLocalNotification because it's perfect for my app, and I have read in API docs: "params object dictionary of key/values that are used to create the notification. the date property is when the...
App keeps crashing when executing a database command
Howdy, My app keeps crashing every time I try to execute a SQL query. Below is a snippet of code that _should_ install a preexisting database called `products.sqlite`, open the database, then drop a table called `products` if it...
How do I pass variables to the registered background service?
I have a simple app, and am passing a few vars to each page when they are opened, such as this: var w = Ti.UI.createWindow({ url:'my_page.js', backgroundColor:'#13386c', accountid:accountid, server:server, tabBarHidden: true}); then on the resulting...
Activity Indicator missing in Iphone4
Hi, I'm trying to show an Activity Indicator in a webview while my page is loading. It works well in the Simulator on low-res iphone, but not in Retina-display mode or on my actual iphone4. Any thoughts? ~~~ var wv = Titanium.UI.createWebView({ ...
Filesystem on the iPad Emulator
iOS SDK 4.2 Titanium 1.5.1 I cannot get Titanium.Filesystem.applicationDataDirectory call to work. I get the following message: Result of expression 'Titanium.Filesystem' [undefined] is not an object If I run the same code on iPad, it works correctly....
Low memory issues with ScrollableView containing multiple ImageViews
I have a ScrollableView which contains 8 ImageViews. Each ImageView is linked to a local image. The image sizes are between 400-500kb each, so we're looking at a little under 4mb total. Everything works wonderfully on the Simulator. However on an actual...
Detect Calling Capability
In my iPhone app I have a button that initiates a call via `Ti.Platform.openURL('tel:'+myData.phone);` How do I detect if the device can call? I probably need to show an alert/error if someone on an iPod Touch presses this button.
Showing 38,151-38,200 of 48,755 1 … 759 760 761 762 763 764 765 766 767 768 769 … 976