titanium-mobile

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

Titanium doesn't recognize Android SDK on Windows

▼魔方 西西 提交于 2019-12-11 03:19:45
问题 Titanium doesn't recognize Android SDK on Windows My problem is that Titanium Studio doesn't see my installed Android Platforms. I've tried removing and reinstalling everything via Titanium Studio but that won't make any difference. Here's a screenshot of the SDK Manager: http://imgur.com/5F5oF Titanium Studio Screenshot: http://imgur.com/w7j7n Titanium Studio Details: Titanium Studio, build: 1.0.8.201201262211 Build: jenkins-titanium-rcp-master-136 (origin/master) Date: 26 January 2012, 22

Custom Tabgroup Appcelerator

我的梦境 提交于 2019-12-11 03:00:04
问题 I'm trying to make a custom tabgroup in appcelerator in which one (or two) of the tabs is bigger than the rest. I have attached an image of what I'm trying to pull off. I am able to make a custom tabgroup, but it refreshes each time I change a tab, and I want my tabs to behave like a native tabgroup. Any help would be much appreciated 回答1: As you mentioned in a comment, on iOS the tab group it itself a view. You can add views to it, and they will persist regardless of which tab is active.

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

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 Studio cannot find Android SDK (tried multiple solutions)

浪子不回头ぞ 提交于 2019-12-10 15:38:21
问题 Okay. I'm kind of at my wits' end here. I've been trying for about 2 days to set up Titanium Studio to recognize and connect to the Android SDK (Windows 7). I have tried multiple solutions (below) with no luck. There's got to be something I'm missing. I've tried Google and the Titanium developer guides. So this is my last straw. Any ideas? Android SDK home path is C:\Android\android-sdk (to avoid spaces with "Program Files") installed all SDKs (3,4,7,8,10,11,12,13,14,15), their Samples, and

How does Titanium SDK work in the various platforms it supports (in 2013)?

这一生的挚爱 提交于 2019-12-10 15:06:00
问题 I haven't been able to find clear information about how Titanium SDK works. What javascript engine is used in the various platforms? Wikipedia says they announced a plan to use v8 in 2011, but doesn't mention them actually using it. Do they use v8? Which platforms do they use that for? How are native UI elements hooked into? Is UI really OS dependent, or does its API build to the lowest common denominator in some way? 回答1: This is really too broad a topic, but I'll give a mile high view and

How to get the Touch point (top and left) irrespective of the views, windows in Titanium

落爺英雄遲暮 提交于 2019-12-10 14:53:10
问题 I want that when i click on my MainView, i want to create new window just where i have touched . Say for e.g. i have clicked at top:50 left:200 then my new window should start from that point only. I want to create something like Popover in Titanium for android . Can anyone just guide me? Thanks in advance. 回答1: consider you have a window win thats going to fire the click event like that: win.addEventListener('click',function(e){ var myPopUp = createPopUp({ left: e.x, top: e.y }); myPopUp

Titanium: how to transition Slide left/right or up/down between 2 windows

久未见 提交于 2019-12-09 23:13:02
问题 I have a problem to solve. I research some day but i cant solve yet. I want to slide the current open window to the left, and slide a new window from the right to on screen. How can i do that? 回答1: You'll need an event to fire this animation, possibly a tap on a button or just simply a swipe event on the window. In this event you just simply animate the 2 window's left property as follows: var win1 = Ti.UI.createWindow({ top: 0, left: 0, width: 320, height: 480 }); var win2 = Ti.UI

How to Call a WebService in titanium using javascript

本秂侑毒 提交于 2019-12-09 13:29:30
问题 I am new to titanium and and want to call a web service from my titanium app. The webService returns the json response. As I am aware of calling the webService using XMLRPC but very confused regarding json. Until now, I know that we have to create the HTTPClient . var request = Titanium.Network.createHTTPClient(); request.open("POST", "http://test.com/services/json"); request.onload = function() { var content = JSON.parse(this.responseText);//in the content i have the response data }; request