titanium

Opening an activity with a webview containing a HTML5 video for a second time

空扰寡人 提交于 2020-01-06 04:02:20
问题 I am serving video's in a webview in Android using Appcelerator Titanium. On iOS this works like a charm. But on Android this gives some problems. It goes wrong the second time an activity is opened with a webview that holds a html5 video element. Steps to reproduce: (Also see this youtube video: http://www.youtube.com/watch?v=0MpSpfJNyOk ) The first time opening a video/activity with html5 video it shows the video and I am able to play it. When I close the window/activity and open a new

Opening an activity with a webview containing a HTML5 video for a second time

血红的双手。 提交于 2020-01-06 04:02:05
问题 I am serving video's in a webview in Android using Appcelerator Titanium. On iOS this works like a charm. But on Android this gives some problems. It goes wrong the second time an activity is opened with a webview that holds a html5 video element. Steps to reproduce: (Also see this youtube video: http://www.youtube.com/watch?v=0MpSpfJNyOk ) The first time opening a video/activity with html5 video it shows the video and I am able to play it. When I close the window/activity and open a new

appcelerator module for existing ios project sdk

断了今生、忘了曾经 提交于 2020-01-06 02:21:06
问题 I want to use into my titanium project the functionalities provided by an existing sdk (deezer sdk). I know I must deal with modules , so I found a lot of tutorials that explain well how to create a titanium module from scratch. But I didn't find something about to explain how to "wrap" an existing ios project within a titanium module. I just need the login/signup functionality and to retrieve the logged user (functionalities provided by the deezer ios sdk, of course). can anybody help me on

titanium android: close application completely (no caching)

江枫思渺然 提交于 2020-01-05 07:04:19
问题 When user presses the back button, titanium application gets closed. But the application can be viewed in cached processes list (under settings-->applications-->running services-->menu pressed-->show cached processes). I want my application to get killed completely when it gets closed. (Just FYI, I am using titanium android module.) Any help? 回答1: There is a boolean property on the window for Android only. Before opening the window, set win.exitOnClose = true; 回答2: Don't do that. Chez Android

Why does PhoneGap seem faster than Titanium?

馋奶兔 提交于 2020-01-04 03:53:07
问题 I'm trying to measure the execution perfomance of a few cross-platform solutions, among which are: Titanium and PhoneGap. So here's an example of the Titanium version of my performance tester, it's very simple, but I'm just trying to get a feeling of how fast my code gets executed: var looplength; var start1; var start2; var end1; var end2; var duration1; var duration2; var diff; var diffpiter; var power; var info; for (power = 0; power < 24; power++) { looplength = Math.pow(2, power); start1

Why does PhoneGap seem faster than Titanium?

丶灬走出姿态 提交于 2020-01-04 03:53:05
问题 I'm trying to measure the execution perfomance of a few cross-platform solutions, among which are: Titanium and PhoneGap. So here's an example of the Titanium version of my performance tester, it's very simple, but I'm just trying to get a feeling of how fast my code gets executed: var looplength; var start1; var start2; var end1; var end2; var duration1; var duration2; var diff; var diffpiter; var power; var info; for (power = 0; power < 24; power++) { looplength = Math.pow(2, power); start1

What version of JavaScript does Titanium use?

假装没事ソ 提交于 2020-01-03 09:56:11
问题 I'm trying to find out what features of JavaScript I can use in Titanium Appcelerator. I've noticed that it has both forEach and map on Arrays, so I guess it's JavaScript language version is least 1.6 (in MDCs's terms). But does it reach further? 回答1: I'm on an Appcelerator Titanium webinar this morning and I asked your question. Here is their answer: Not sure of the exact version (e.g., 1.7 or 1.8) Using Rhino Javascript interpreter on Android Using Webkit Javascript interpreter on the

How i can add a table view in a scroll view?

情到浓时终转凉″ 提交于 2020-01-03 05:21:08
问题 I am adding a table view in a scroll view, its smoothly working in case of iOS but in case of Android the table view not scrolls. i have describe the code below which describe my problem.. Suggest me any answer which can help to solve my problem. var rows = []; var win = Ti.UI.createWindow({ backgroundColor:'white' }); var scrollableView = Ti.UI.createScrollView({ top : 0, contentWidth : '100%', contentHeight : 'auto' }); var fruit = Ti.UI.createView({ top : 40, width : '70%', height : 20,

Titanium Studio Mac OS 10.9 Android SDK Manager not fetching Packages

血红的双手。 提交于 2020-01-03 05:13:15
问题 Can someone help or direct me in the right path? I am at a predicament. I believe my issue has something to do with my internet connection being filtered sine i am not in North America at the moment. System Specifications and issue: Installed: Titanium Studio 3.4.0 OS: Mac OS 10.9.5 Mavericks Titanium SDK default path: /Users/"name"/Library/Application Support/Titanium/ (has a folder labled 'sdk' and 'mobilesdk' in it) Android SDK default path: /Users/"name"/Library/Application Support

How to retrive values from Database in Titanium Alloy?

给你一囗甜甜゛ 提交于 2020-01-03 00:50:08
问题 I'm new to Titanium API. I want to know how to retrieve values from DB and display in UI. I created a model and inserted a row. My code is as below, Model: var moment = require('alloy/moment'); exports.definition = { config : { "columns": { "id":"text", "LanguageName":"text" }, "adapter": { "type": "sql", "collection_name": "UserLanguage" } }, extendModel: function(Model) { _.extend(Model.prototype, { }); return Model; }, extendCollection: function(Collection) { _.extend(Collection.prototype,