titanium-alloy

Titanium Alloy with Android Emulator on Windows 10

假装没事ソ 提交于 2019-12-12 02:31:53
问题 I'm having huge problems with Titanium Alloy on Windows 10. I am using the Atom editor to write my apps. Whenever I execute ti build , enter the command up to 10( !!! ) times until an Android device can be found. For the Android emulator I get an error message as follows: [Error] Failed to install apk on "emulator-5554" [Error] Error: device not found I tried the commands ti build -p android , ti build -p android -T emulator and ti build -p android -T emulator -C emulator-5554 --log-level

Titanium Alloy ListView XML Uncaught TypeError: Object #<UI> has no method 'createTemplates'

江枫思渺然 提交于 2019-12-12 00:44:14
问题 I am new to Titanium, so excuse my lack of understanding. Even though I am using sdk version 3.2 (have sdk-version: 3.2.0.v20130801162445 in my tiapp.xml) when I try and have a view that uses the xml above I get this error: [ERROR][V8Exception( 615)] Exception occurred at alloy/controllers/feed.js:22: Uncaught TypeError: Object # has no method 'createTemplates' I cut down all my code so that the feed.js file is just: function loadMoreBtnClicked(_event) { alert('not implemented yet'); }

how to redirect from one page to tab in another page in titanium?

落花浮王杯 提交于 2019-12-11 23:14:46
问题 I have two pages in my application. The first page has a tab group with three tabs. Now on click of button in second page, I need to redirect my control to first tab 2 in my first page. How can I do that. My code is as follows, <Alloy> <TabGroup id="myTabGrp"> //Tabgroup Added <Tab id="one"> <Window class="container"> <Label>This is the Home View</Label> </Window> </Tab> <Tab id="two"> <Window class="container" id="winTwo"> <Label>This is the second View</Label> </Window> </Tab> <Tab id=

Appcelerator Titanium Alloy: How to store data on a ScrollableView to use in click event

廉价感情. 提交于 2019-12-11 21:51:44
问题 I have a ScrollableView, which has some images and labels inside each child view. However, I would like to store a ID value for each item, so that I can use it inside an onClick event. This ID could the be used to query the database or open up a new controller the value passed in. I thought about adding an attribute on the view, to store my ID, like so <ScrollableView dataCollection="videos" id="mainCarousel"> <View onClick="carouselItemClick" itemID="{the_id}"> <ImageView image="{episode_img

Tiianium studio 3.2.0 Project intallation issue on Device

拈花ヽ惹草 提交于 2019-12-11 19:11:15
问题 I am using titanium studio or sdk 3.2.0, my app is running on ios 6 and also 7 devices, but not running on ios 5 device. How can i fix it? And also i want to know how to set deployment target and mini sdk version in my project? 回答1: Note that support for iOS 5.x and earlier was removed in Release 3.2.0. You can find this document and other useful information in the appcelerator migration guide. In order to support iOS5, you would have to compile with an older Version of the SDK, you can find

Issue with label alignment in titanium alloy

我与影子孤独终老i 提交于 2019-12-11 18:45:49
问题 I have created custom check boxes in my application. I have no issue with check box and it's label if the label text is small. If the label text is large (more than a one line) the alignment is not showing properly. Look at the above screenshot: the first option label text is "Please select the 2 primary reasons rating the program testing the program" and second option label text is "Question2". If the text in first label is small that is which fits in one line then the UI looks good. But If

View is not updating from other controller Appcelerator Alloy

半腔热情 提交于 2019-12-11 13:31:47
问题 I hope you will be fine. I am having trouble updating views in Titanium Appcelerator Alloy, I basically want to be able delete previous children from picker and then add new one in picker that is in a different controller/view that i am currently in..... I have followed this THIS SOLUTION unfortunately that is not working for me. Here is the code I am trying. createEvent.js Ti.App.addEventListener('db_update', function(){ alert("OK"); $.picker.removeAllChildren(); }) customParty.js $.btnclick

Azure: whether to create web services or not

泄露秘密 提交于 2019-12-11 12:29:10
问题 I am developing an application on Titanium Alloy that has connectivity to database located at windows azure. I want to know: is it necessary to create web services for getting data from Azure storage, as Windows Azure already provides REST API. What are the pros and cons of creating Web Services in my case ? which way is more preferable in all the terms(including performance, overhead, security, etc...) creating Web Services or using REST API directly ? 回答1: Let me start by saying I'm not

Requiring external JavaScript file

℡╲_俬逩灬. 提交于 2019-12-11 10:22:28
问题 After reading all the relevant answers in SO and posts in the Appcelerator forums I still can't get this to work: I have an application developed in Appcelerator, and I want to load an external JavaScript file in some of my controllers. My App structure is as follows: + app - assets - controllers - models + lib - IndicatorWindow.js ... Inside a controller I have the following code: var uie = require('lib/IndicatorWindow'); But when I run this on an Android phone I get: Uncaught Error:

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