Community Questions & Answers
AppendRow - how do i get it to work?
Hello, I'm trying to create an app where I put cars, car model and the year the car was made into a SQLite database and then download the data in a table view. I get it almost working but iam completely stuck when it comes to `appendRow`method. How do I...
Android TableView Crash
Hello everybody. I develop for Android and iOS. IDE: Titanium 3.1.0.201304151534-773-7F7BJ7NBRBRJN under Mac Os. I got a problem with TableView. I do appending of rows to Table and then try to scroll the Table. The app crashed if I do scrolling. The...
SSL Certificate Error when updating Titanium SDK
I'm Using Titanium Studio, build: 3.1.0.201304151600 and when update starts, the log file shows this error. Somebody can help me about this issue. ~~~code block (three tildes)~~~ javax.net.ssl.SSLHandshakeException:...
Can you center the title of a tableview row?
By default the title of a tableview row goes to the far left....can you center that title at the center of a tableview row?
How PushNotification works with user accounts
I made push notification work from ACS to one logged in iPhone device.. In ACS, do I have to create a user account for each device to make the device log in and notified? If the app has hundreds device, do I need t hundreds of account and log them in?
Views disappear in a scrollable view
I've got a scrollable view with widgets inside each of the views that look like the following: ~~~ <ScrollableView id="scrollableview" showPagingControl="true"> <View> <Require type="widget"...
Is it safe to update to XCode 4.6.3?
Hi with some insistence, my Mac is asking me to update my 4.5.2 XCode version to the new 4.6.3. The Titanium compatibility matrix [states](http://docs.appcelerator.com/titanium/3.0/#!/guide/Titanium_Compatibility_Matrix) the maximum supported version is...
iPad retina simulator
Hi, i'm trying to run my app on the ipad retina simulator, but Studio always launches the regular simulador. I try switching to retina running the simulator sepatedly and then from within the studio, but it doesn't work. Any suggetion? I'm using studio...
Lots of Button Events: crash and 'NSRangeException'
Hi Everyone, I've got this strange crash bug that seems to occur when tapping on a lot of buttons on the screen. I've got about 10 buttons that all have event handlers on them. I show/hide the buttons on/off states, and also remove/add an AppProperty on...
What is the best way to use custom helpers?
Hi, I would like to define custom helpers providing frequently used functions. I use Alloy framework and I didn't find anything about helpers in the official documentation. Is there a good way/best practice to use them in a titanium application? Thanks
mac OS X 10.6 compatibility with Ti3.1.0 why can't I deploy my app?
I was trying to import my project from windows to Mac OS X Im working with Alloy with titanium 3.1.0 I saw in here that i should be using at least 10.7 Mac OS X http://docs.appcelerator.com/titanium/latest/#!/guide/Titanium_Compatibility_Matrix but i...
I want EULA to show only the first time
Hey guys I've been struggling on this one for a while. I built an EULA (End of User Lisence Agreement) that will come up when the app is opened. However, I ONLY want the EULA to come up the first time and after the user clicks accept to never come up...
Sample code/layout where user can enter 2 items ?
Looking for a sample code/layout where user can enter 2 items (like username & password) and an Enter button. This is for Mobile, Titanum 3.0.2, iOS, iPhone.
Removing Landscape Splash Screen
Hey Everyone, I was wonderinng if its possible to force my entire app to be Portrait. Currently every screen is portrait but for some reason during the splash screen it acts differently. If I rotate the device to the landscape position, the splash screen...
How do I programatically add components to an Alloy window
If i have an Alloy "viewfile.xml" file like this: ~~~ <Alloy> <Window> <!-- Some programmatically defined componets should go here --> </Window> </Alloy> ~~~ How do I add components such as buttons, or...
<supports-screens android:anyDensity="false">
for supporting multiple device like tablet and moble phon i changed the android:anyDensity='true' to false in Tiapp.xml and it's worked, but the video is not supported it only gives audio. in the new android version 4.x. version 3.1 it's worked properly...
Android Back Button freeze App
Hi, in my Android App, on my main form, if do a "back" on the phone button, I get a blank screen that freeze the app. How to avoid this ? Regards
which is good among Airpush ,Admob or StartApp with mobile application.
i am working on mobile application on which i want to display ads plz tell me which is the best solution for me.
Image resolutions for Androd mobile, IOS and tablets
I read the best practices of android but not clarified the question about the pixel resolution of the images in low, med and high, i have to count too with the tablet resolutions. For example i have to put an image all the width of the display (the height...
QRCODE SCANNER
I want to start a QRCODE Scanner application for IOS and Android. Please guide me about the modules
How to detect when video "done" button is clicked on a video from a webview?
I have: a window with a webview. The webview contains a remote URL to a HTML page with a simple HTML5 video tag (mp4 video). Video works fine. Plays after clicking the play button. The main window (thats contains the webview) is only allowed to be viewed...
App crashes on emulator, works fine on others
seeing as though this doesn't have much to do with the code that I've written (app works fine on S3 but not on emulator). It's a tabbed app, each of them hosting a webView inside, that's it. I'm going to paste the exception that I got after the crash...
Titanium App crashes
Hii, I built an app in Titanium & run on emulator. if I keep app ideal for sometime say 20mins and after that if i access the app, it quits with message that "App terminated unexpectedly. Please try again". So what is the cause of such...
Tableview row - adding new section with rows. Event not firing
Im using Titanium 3.1.0 for IOS. In docs theres a known issues with tableView but thats for 3.0.0. Why doesn't it work? Subselectrow is just a row with labels and is used a lot with addEventListener. So i know its working. --- var section =...
AudioPlayer Slider Rewind forward/backward
Hello, I have created a Audioplayer with a remote url. The slider changes depending on the length of the sound, but now I need to be able to rewind forward and backward. I tried the TiMediaVideoPlayerProxy.h solution, but it wont work with SDK 3.1.0 GA....
Problem with Picker
hello to all guys.I have a problem in taking the present value of a custom picker created in the following way ~~~ for (var i = minn; i <= maxx; i++) { addRow("" + i + " " + m); }; picker.setSelectedRow(0, (vall - minn),...
Ti.Storekit: receiptVerificationSandbox in production.. while in review!
Lastest version of module Ti.StoreKit now manages the receiptVerificationSandbox boolean correctly. See on [Jira](https://jira.appcelerator.org/browse/TC-2329#comment-257851). But as it's asked within the comments, how to manage the production version...
problem path not found
Hi every body i have a problem with parsing json data , i work in localhost and i got in the titanium console the following error : [2013-06-14 09:37:51,318] get produits/KS_nav_views.png: path not found it seems that i didn't make the correct adress i...
Custom module makes app crash at start if on wrong iOS version
We are including a custom native module from the market place in our app. That module references a framework that is available only from iOS5+. This makes the app crash on startup on an iOS 4.3.3 device, even before the module is require():ed. (So even...
Empty collection after fetch
I have the following files: controllers/tab_matches.js ~~~ var matches = Alloy.Collections.match; matches.fetch(); console.log(matches); ~~~ models/match.js ~~~ var Alloy = require("alloy"); exports.definition = { config : { ...
To make textarea as non editable
Hi how to make text area as non editable. thanks. ~~~ var textField= Ti.UI.createTextArea({ value: rows.fieldByName('Activities_Detail_Desc'), height:'80%', width: 300, top: 55, ...
Why Titanium detects modules I don't use?
Hi, why when I compile an iPhone app, Titanium detects modules I don't use? Are them added to my project? I added ti.storekit, but facebook, cloudpush and tizen were added by Titanium: ~~~ [DEBUG] : Building for the following architectures: armv7 armv7s...
Galaxy S4 Support
Do we have any info on when the Galaxy S4 will be supported by the android emulator?
Dialog box hides after multiple clicks
when i click on any of the time(e.message) on webview dialog box appears then i have to set reminder for 2 mins or 10 mins.first time when i click on the dialog box it works but after then i have to click on the options of dialog box multiple times to hide...
how to set column a primary key id having only a static value of 1.
Hi i am new to titanium, ryt now i'm learning into Models.I wanted to set an id as a primary key but with only "1" static value on it (not incremented), so that when i want to query is like this example in sql statement(select * from...
Printing Via Bluetooth in Android
Hi I am developing an application in which i require to print a doc to be print via bluetooth through printer. There are modules in the market place but not finding them useful, can anyone please help me finding a solution
Android new Navigation Drawer?
There is a way to use the new [Navigation Drawer](http://developer.android.com/training/implementing-navigation/nav-drawer.html) with [ActionBarDrawerToggle](http://developer.android.com/reference/android/support/v4/app/ActionBarDrawerToggle.html) within...
Refresh a Table in window without effecting other elements.
I've a Table and a textArea in a window. I want to refresh th table but without effecting the textArea is there any idea to do so?? is it possible to split the window horizontally into 2 in android? please help me.
Pixel Information from Image Blob
Just a quick question... Anyone know if it's possible to get pixel information from an image's blob data on an iPhone? Trying to figure out a way to get an array of RGB values but I'm thinking I may have to use something like a remote API and...
auto correct
Hi, I have a form in my android app. on galaxy S4, we have autocorrect enabled by default , when i change from a field to another. the app crashs. i disabled it in code : (with alloy : autocorrect="false" ) but i have still...
How to stack ACS push notifications on Android notification area
Every ACS push message received adds a new notification in the notification drawer, even when they are sent through the same channel. I want the first push message to be listed in the notification area, but the next ones to be stacked over the first...
close window that contains maps v2
Hi, i have a window that contains maps v2. i have a button. when i click on it, it closes the window. $.win.close(); but sotimes, it reload the map even if i call just close function. is it a bug with android maps v2 ? thanks
iOS 7 Support
Need to know when Titanium is going to support iOS 7. I read somewhere that once iOS is public, Apple will not accept new Apps or updates that do not incorporate iOS guidelines. If that is true, it make sense for us to quickly start researching as iOS is...
Adding ScrollableView currentPage views into another window
Hi, I am trying to add views from a ScrollableView to show in a new window. More specifically, I need to show the currentPage view in a new window when that view is clicked. All these views are images so its like further browsing or enlarging the image in...
Timed out waiting for emulator to be ready, you may need to close the emulator and try again
Hi every body i don't know why i always face this problem in my emulator: [ERROR] Timed out waiting for emulator to be ready, you may need to close the emulator and try again [ERROR] : Project failed to build after 38s 7ms i fixed it and it reappear...
How to format a textfield for numbers
Hi, I need to format all my numeric textfields, in example if the number is 14521.50 changes to this 14,521.20. Is for an iPad application with iOs 5.x - 6.x
Problems utilizing REST for push notifications.
When attempting to use the REST api for a simple PUSH test, it is asking me to sign in. I've included my DEV API key in the request. I have push working manually via the my.appcelerator.com site. This is what I am running: curl -b cookies.txt -c...
Social.js not working with new Twitter REST API
I am using [social.js]: https://gist.github.com/dawsontoth/00e95c5d95d2b7d5d027 to share messages in Twitter. It worked great in both iOS and Android. However, Twitter deprecated their REST API v1 and now I get an error message that I should migrate to API...
displaying json feed in a list view
greetings to all the titanium developers out their. I am new at titanium and I am trying to create a simple json to list view app that just collects data from json using yahoo yql and displays them in a list view. I am having a problem trying to display...
ACS Friends Search bug
Hi all, I'm trying to perform a friends search and after a days testing think I've found a showstopping bug. Basically I can't pass a string in the search call, like so ~~~ var uid = Ti.App.Properties.getString("uid",...