titanium

Titanium SDK will not recognize Titanium CLI, node, alloy, or npm on Ubuntu 12.04

旧城冷巷雨未停 提交于 2019-12-11 03:56:26
问题 Titanium SDK will not recognize Titanium CLI, node, alloy, or npm on Ubuntu 12.04 I followed the installation instructions for the Titanium SDK here: http://docs.appcelerator.com/titanium/latest/#!/guide/Quick_Start Each time I try to launch titanium, it prompts me for some Titanium Updates. But of course, when I click the fancy update button, it tells me: 'Installing Titanium Updates...' has encountered a problem. Error encountered during update. Cannot install Node on platforms other than

Replace HTML entities (e.g. ’) with character equivalents when parsing an XML feed

久未见 提交于 2019-12-11 03:40:46
问题 When parsing an XML feed, I am getting text from the content tag, like this: The Government has awarded funding for a major refurbishment project to go ahead at St Eunan’s College. This is in addition to last month’s announcement that grant for its prefabs to be replaced with permanent accomodation. The latest grant will allow for major refurbishment to a section of the school to allow for new accommodation for classes – the project will also involve roof repairs, the installation of a dust

APS Cloud Push - Payload is null

走远了吗. 提交于 2019-12-11 03:34:26
问题 Just upgraded my app to Appcelerator Platform and SDK 4.0.0. If I do a fresh install on my android phone, I get the following error. It behaves as if a push notification is coming in, but there is actually none. Any idea? [ERROR] : APSCloudPush: Payload is null! [ERROR] : TiApplication: (main) [4889,4889] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start receiver com.appcelerator.aps.GCMReceiver: java.lang.NullPointerException: Attempt to invoke virtual

Titanium refreshing TableView with new data

爷,独闯天下 提交于 2019-12-11 03:28:10
问题 This is what I am trying to do: _tableView.data[0].rows[selectedPosY].children[selectedPosX].imageId = tempImageId; _tableView.data[0].rows[selectedPosY].children[selectedPosX].image = tempImageUrl; Titanium.API.info("imageIdSelected:" + _tableView.data[0].rows[selectedPosY].children[selectedPosX].imageId + "imageSelected:" + _tableView.data[0].rows[selectedPosY].children[selectedPosX].image); The update is done on the data, but it doesn't reflect in UI table, what is missing? I even tried

The system cannot find the file specified “classes.dex”

蓝咒 提交于 2019-12-11 03:24:29
问题 I have developed android module project and deployed in Titanium Project. When I run the Titanium Project am getting this err frequently [INFO] logfile = C:\ws\Testw2\build.log [INFO] Building Testw2 for Android ... one moment [INFO] Titanium SDK version: 3.0.0 (12/12/12 18:49 a5894b3) [INFO] Fastdev server running, deploying in Fastdev mode [INFO] Copying CommonJS modules... [INFO] Copying project resources.. [INFO] Tiapp.xml unchanged, skipping class generation [INFO] Force including all

How to get the actual height of a label with auto-height

ⅰ亾dé卋堺 提交于 2019-12-11 01:46:00
问题 I'm aware that this question has appeared in various forms before, but none of the solutions worked out for me... I'm using the Titanium API 2.1.3, and building for iPhone. I use a lot of common JS, so I have this: exports.Header = function(title){ var l = Ti.UI.createLabel({ text: title, height: 'auto', textAlign: 'left', color: '#989898', font: {fontSize: exports.defaultFontSize+10, fontFamily: exports.defaultFont, fontWeight: 'bold'} }); return l; }; And I'm calling the label like so: var

Tablet “drawable” qualifier

泪湿孤枕 提交于 2019-12-11 01:16:25
问题 A Titanium project for both Mobile+Tablet, completed mobile version perfectly but facing some complexity when coming to Tablet design. Below is the Matrix of qualifier which supports by Titanium but 'm not able to find any qualifier which targets Android-Tablet I found that you can forcefully apply Android resource by putting things in " platform>android>res " directory. var tab = Titanium.UI.createTab({ icon:Ti.App.Android.R.drawable.tab_icon }); with Tab and its icon property I'm able to

Getting ID of clicked TableRow in Titanium Alloy?

最后都变了- 提交于 2019-12-11 00:04:29
问题 I'm new to Titanium and to Backbone. I've worked with JS frameworks before (most familiar with Knockout.js), but Backbone, and the way it works with Alloy, is taking some getting used to. I want to do something very simple. I have a collection bound to a TableView. All I want to do is get the data associated with a particular row when it is clicked. The should be trivial, but all the docs seem to assume you know how to use Alloy already! Model exports.definition = { config: { columns: {

Issue with update query in titanium alloy

半世苍凉 提交于 2019-12-10 23:56:58
问题 I'm new to titanium and alloy framework. I have created the models to store some data. I am able to insert and retrieve the data. I don't know How to update the row. As suggest I did as follows, var userLang = Alloy.Collections.userLanguage; var models = Alloy.createModel("userLanguage"); models.fetch({id: 1}); models.save({ languageID: langID, languageText: lang }); The above code s not showing any error, But when I try to select a row from the table, var userLang = Alloy.createModel(

Titanium Back Button - Always closes my App

空扰寡人 提交于 2019-12-10 21:34:29
问题 I have a new problem with my App, i'm using Appcelerator Titanium for development. I want to lock the Backbutton from my Device, so the App wont close everytime when i use him. I want to close the App only if i'm at the primarymenu. So this is my code: Ti.UI.currentWindow.addEventListener('android:back',function(){ alert(Ti.App.PositionNow); if(Ti.App.PositionNow=='0') { alert('do quit'); } else if(Ti.App.PositionNow=='1') { Ti.App.multi_tableView.addEventListener('click',myfunction); var