Community Questions & Answers
parse XML BIG5 encoding
I have a XML that is in BIG5 encoding. When I try to parse it, this error appear in console: ~~~ [ERROR] : Error Domain=com.google.GDataXML Code=-1 "The operation couldn’t be completed. (com.google.GDataXML error -1.)". in...
Get error 'HTTP/1.1 406 Not Acceptable' when calling objects.create using ACS.
I am moving an app over from a JSON flat file to use ACS and I have login, register and other features working. My application stores goals so I am assuming I have to use a custom object. I call cloud.objects.create and pass in a classname along with the...
Can not run the ios simulator in titanium
i installed xcode and sdk. Ios simulator run in xcode but not run in titanium. i got this error : Titanium Command-Line Interface, CLI version 3.1.0, Titanium SDK version 3.1.0.GA Copyright (c) 2012-2013, Appcelerator, Inc. All Rights Reserved. Please...
Mobile Web -- are there some examples?
Hi guys! I will be running mobile web project for 'converting' existing website into mobile web. I am looking for any link with examples to Mobile Web. Help will be greatly appreciated! Thank you!
Underscore.string or stringjs?
Hi, I want to know which one of string libraries (Underscore.string or stringsjs) is better for appcelerator or at all? I'm using Alloy 1.2.0 and Titanium 3.1.0GA
Cannot read property actionBar
I am trying to add an actionbar to my Android app. The window where i want the actionbar to appear is opened with the following code ~~~ Alloy.createController('main').getView().open(); ~~~ Here is the code of my controller "main" ~~~ function...
Get Reverse Geo to fire a secound time ?
I am trying to get the reversegeo to fire a second time when I start a new game... the first time it launched it fires fine, but when I start a new game it wont fire a secound time ... how do I get it to fire a second time or correctly stated every time...
Errors while compiling/running app on android device
Hi, I'm getting errors while compiling / running the app on my android device. The errors are: [ERROR] Exception occured while building Android project: [ERROR] Traceback (most recent call last): [ERROR] File...
Android: Play sound through receiver
Hello! I'm trying to get audio to play through an Android device's receiver. I've been able to do this just fine with no issues on iOS using Ti.Media.createSound but can't with Android. Doing some research I determined the way to do this will be using a...
getting a custom home button in my navbar
so i have been searching the Q&A and come across several examples, but for me it wont work. so i am using alloy and this is my code: register.xml ˜˜˜ <Alloy> <Window id="windowRegister"...
How do you set up controls add to have a certain function associated with them in the tss
I got a # of buttons with a onClick javascript function named "respond" set up for them in my XML like so: ~~~ <Button id="button1" onClick="respond" /> ~~~ I don't like having to type out onClick="respond"...
Modifying Ti Draggable
I know draggable allows you to drag a view on touch but how would i modify to allow it to drag only on a touch or tap hold event? would setTimeout() help?
Missing Alloy Resources
When I run my app in android emulator I see these messages over and over in the log: ~~~ alloy/controllers/alloy/controllers/BaseController.js exists: false alloy/controllers/alloy.js exists: false alloy/models/alloy/underscore.js exists:...
Alloy - singleton syntax
Hi, Image a model with only two columns called id and name; By analogy with tableview and datacolelction, I tried the following for a view and a singleton. ~~~ <Alloy> <Model src="MyModel" /> <View...
Maps in 3.x
Hi, I have an existing app (written in 2.1) that is using the original maps API. I plan on releasing updates to this app, do I need to upgrade the maps if I'm happy with the current functionality? Am I correct in understanding that as of the maps v2 I...
Alloy - Passing data from singleton to widget
Hello, I'm trying to implement a widget so I can reuse my code. The widget needs a string as an argument. I am trying to databind that string but it does not work. ~~~ <Alloy> <Model src="MyModel" id ="MyModelId"...
TableViewRow and selecable
Hi I am trying to use tableview rows and set a specific colour to a view in a row: ~~~ <TableViewRow id="row"> <View id="messageContainer" backgroundColor="red"...
Adding a TableView inside a TableViewRow with expending animation
Hello, I would like to know how to perform a specific mechanism. I have a table view with some rows corresponding to some categories, a user can "touch" a category then the row will be expended to show a table view filled with some data. Exemple...
load view iOS NSInternalInconsistencyException
Hi, I have an error when I select a row from a tableview and load a detail I'm using: Titanium Studio Version: 3.1.0.201304151534-773-7F7BJ7NBRBRJN iOS 5.0 Xcode Version 4.5.1 (4G1004) iPad Simulator This is the error: [ERROR] : The application has...
Implemeting a like filter for Alloy Collection
I would like to do a 'like' filter on an in memory collection that is databound to a tableview. I am aware that I could use a search view and set the search property on the tableview, however the search view when bound to a tableview in this way has a...
deleteRow is not deleting the row properly.
Hi Everyone, I am stuck on a silly problem. I have a table in which data is fetched from local database. What I want is when I longclick on the any row an alert is shown which contains a delete button by clicking on delete button record should be deleted...
TiCarousel for Android
Hi, any one know a module like TiCarousel for android on something who look like ?? Thanks Advanced
Certain videos won't play in VideoPlayer
I'm writing an app that plays Facebook videos inside a VideoPlayer control. There are times when certain videos just won't play while others will, and I can consistently reproduce this behavior both in the iOS simulator and on an iPhone running iOS6. ...
How to change the button image when selected and deselected
So basically I have buttons that have the same image when the window is accessed. When one of the buttons is clicked, the button changes image. What I would like to happen is once a different button is clicked, the previous button that is clicked should go...
Save ImageView to FileSystem
Greetings, (iPhone app, latest SDK, using Alloy) I'm at my wits end trying to understand how to save an image view to the filesystem so it can be accessed in a separate view as an e-mail attachment. I understand how to get the file from the filesystem...
Android Label Ellipsize
I have some labels in my app that I would like to ellipsize, but it seems that this property only works if the label is given a fixed width (i.e. have to set the width property to something). I am using setting the left and right properties to make the...
Heavywindow vs lightweight window, when should we use one and when the other?
Hello everyone :) I've read a lot about the two types of window in Android. But, is one better suited than the other? In which situation? A heavywindow is a new Android activity with a new javascript context. A lightweight window is 'just' a new...
Unable to change height of TableViewRow
- **Application Type:** mobile - **Titanium SDK:** 3.1.0.GA - **Platform & version:** iOS 6.1 - **Device:** iOS Simulator - **Host Operating System:** OSX 10.8.3 - **Titanium Studio:** 3.1.0.201304151600 I'd like to conditionally show/hide a textfield...
Detect first App-Start after Update?
Hey, ist there any native way around to detect if there was an Update for an app? (From Appstore) My case is, i am using a database (local, sqllite) and after i've commited an update to the apple appstore the app is throwing an error. I think it's...
WebView and Js give me headache Please Help
I have an web view on Windows witch use Jquery 1.7 carousel. All the Js on the html fire Action on html navigrator but on the Iphone or Android device don't fire any event. Titanium Web view ~~~ Ti.App.addEventListener('ClickWeb', function(e) { ...
Module Titanium from iOS
Hello, I have a problem with my code in my first module. I write in Titanium this code: var module_fingerprinting = require('com.tveo.fingerprinting'); Ti.API.info("test.startMicrophone is => " + test.startMicrophone); In XCODE I have...
save data table by clicking, Android
I use Android I need you to click a name in the table1. The name (and data) is saved and installed on the table2. (if I close the application I want to be saved) and I need you to click a name in the table2. The name is deleted from the table2. (if I...
Pdf generator...
Hi..guys... In my application(IOS application) i have form ..i want to save this form(Form contains images also)as PDF file... can any one help me to generate pdf file..Thank you..
How to set up Chinese name in an Alloy Framework
How to set up Chinese name? can anyone tell me how to set the Chinese appname in my alloy project?Looking forward to your reply.
Set value of custom picker (with two columns)
Hello ! i have a custom picker with two columns , this is the code : ~~~ var Hours = []; var Minits = []; for (var i = 0; i < 24; i++) { var str = ''; if (i < 10) { str = '0' + i; } else...
Cant able to get image in webview using html in android
Hi Developers, I am facing issue in getting image in Webview for that i used html. i am using 3.0.2 Sdk in android. I have tried lot of stuffs to get image but i am failed to get the image. please help me. your help will be appreciated. below is the code...
ListView not showing entries after back button
Firstly let me explain what I have already done. I have an app that on entry it requests data from a server. With that data It creates a window with a picker (winA) - the window is a dummy tabgroup to allow the navbar to appear. The user selects an entry...
App Website sync with social logins
Hi All A bit of a general question but i would like to ask how other people deal with this issue. I get asked a lot from people that they would like to allow people to login to the app via facebook or twitter. This is fine i understand how this is done...
Playing mp3 file with a webView + keep playing when screen locked (iOS)
Hi, I'm using the following code to stream an mp3 file using a webview: ~~~ var theWvWebView = Ti.UI.createWebView(webViewOptions); theWvWebView.url = encodeURI(url); // url = link to mp3 file ~~~ everything works fine until the iPhone's screen is...
where clause on Alloy Collections
Hi, ~~~ function filterFunction(collection) { return collection.where({author:'Mark Twain'}); } ~~~ This will return the models which has "'Mark Twain" author. but what if want models which has "'Mark Twain" OR "John...
Creating "menu" in app.js - some issues
OK here's the deal: I have several module.js files. I'd like to include them into the app, I'm experimenting as of now, so don't be too bothered by the naming. My Idea is as follows: I create tableview, where title is the actual name of the module. So, on...
Donwload content from a SOAP webservice response
Hi people: I have one trouble getting some file from a webservice, using SOAP. I know that the content is included on the response, as you can see on the example, but I don't know how to do to extract it to save it to a file ou do to something with...
onsendstream does not work if using synchronous Http requests. Is this a bug?
I am building a upload progress bar, which uses the onsendstream function to update the bar as the file goes. This works ok if using async requests, however my app requires synchronous requests because I need to freeze the app until the upload finishes...
Mobile - iPad Options Dialog Layout
Hi, I'm using the latest titanium mobile SDK (3.10) and the iOS 6.1 SDK. I'm trying to use the option dialog to create a popover style picker that lets my users select two options. As stated by the documentation...
youtube video not working in Webview with anyDensity set to false
youtube videos in an frame inside an android WebView stopped working in our apps. no video (black screen) but can hear sounds and see video controls.
Alloy TableView Data binding
Hi i am new & learning titanium for a while, I would like to ask why databinding does not work on my static tableview.Thanks for your help. personalinfo.js ~~~ function addItem(){ var personalinfos = Alloy.Collections.personalinfo; var...
Alloy TableView Data binding
Hi i am new & learning titanium for a while, I would like to ask why databinding does not work on my static tableview.Thanks for your help. personalinfo.js ~~~ function addItem(){ var personalinfos = Alloy.Collections.personalinfo; var personalinfo =...
Alloy TableView Data binding
Hi i am new & learning titanium for a while, I would like to ask why databinding does not work on my static tableview.Thanks for your help. personalinfo.js function addItem(){ var personalinfos = Alloy.Collections.personalinfo; var...
Android Intent Filter crashes app when launched from Share Menu
Hi! I have an android app that can receive office documents from other apps via the share menu. I have the intent-filters set up via a custom AndroidManifest.xml file and the app successfully shows up in the share menu from other apps (like my files,...
Certificates, Encryption and Security - Information Require
Hi, I am new to mobile. I want the information on "Understanding of certificates, encryption, and other security based for Mobiles". I want it in terms for All smartphones. Please let me know. Thanks VJ