titanium

Can we create multi dex support builds in Titanium android?

拟墨画扇 提交于 2019-12-13 14:41:39
问题 I have been developing an application in Titanium android.Somehow after updating titanium i started getting the 65k limit error and the solution i got is : https://www.contentful.com/blog/2014/10/30/android-and-the-dex-64k-methods-limit/ But how to implement these in Titanium ? 回答1: this question was asked and an issue was created in 2014: https://jira.appcelerator.org/browse/TIMOB-18082 however, it is not resolved. (Under Titanium SDK 5.1.1.GA) I met this problem today, and my solution is:

Appcelerator Titanium: how to record video?

Deadly 提交于 2019-12-13 12:36:37
问题 How to record video in Appcelerator Titanium and store in a specific location ? I am using an Android 2.3.6 device. This gist: https://gist.github.com/832488 does not seem to work as suggested / expected. It starts the video capture intent var intent = Titanium.Android.createIntent({ action: 'android.media.action.VIDEO_CAPTURE' }); as an activityForResult but the callback in Titanium.Android.currentActivity.startActivityForResult(intent, function(e) { ... }); is never called, none of

Titanium Javascript: “that.” does not work

断了今生、忘了曾经 提交于 2019-12-13 11:27:50
问题 Neither this nor that works. Does anyone know what is going on?? Edit: qwerty is simply called as "qwerty();" when in other pieces of code. It is supposed to be indepedent. Edit: I realize what is wrong. The problem lies with the i... function qwerty () { ..... for loop that changes i ...... var that = this; this.chara[i] = createlabel..... this.chara[i].addEventListener('click', function(e) { var j = e.source.id; alert("hello word"); alert(this.chara[j].width); // I get the error here });

Not able to set permission in Android 7.0.0

空扰寡人 提交于 2019-12-13 06:46:06
问题 Not able to set permission in Android 7.0.0. App launch sets Camera ,Location, storage ,calendar permissions which is not working in Android os ver >6. Please help. I tried below link example but no luck http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Android Permissions section. Please advise 回答1: There is currently (Ti SDK 6.0.2.GA) a JIRA ticket and an open Github pull request about Nougat permissions. Might be worth following that ticket. 回答2: You need to add the permissions

sending a tricky array in a httpclient

旧街凉风 提交于 2019-12-13 06:15:18
问题 I have to integrate data from an array into a webservice call which isn't the most efficient but it is what it is. I have an array of ids (friend facebook ids). I need to send these id's as parameters in a http client in titanium. Due to Titanium having some trouble with passing arrays in webservices, I need to construct the send method of my http client as such: non_xhr.send('user_id=100005941351187&friend_ids[0]=100000049956179&friend_ids[1]=100005272411678'); Obviousy depending on the user

Titanium: How to show multiple Annotations on Map?

时间秒杀一切 提交于 2019-12-13 05:48:58
问题 Its mine 2nd day on Titanium SDK. I want to show multiple annotations on the map. I have referred answers at SO but couldn't find fix ! I tried below code : - // To create map var mapview = Titanium.Map.createView({ mapType: Titanium.Map.STANDARD_TYPE, region:{latitude:33.74511, longitude:-84.38993, latitudeDelta:0.5, longitudeDelta:0.5}, animate:true, regionFit:true, userLocation:true, annotations:[createAnnotations()], top:110, height:200 }); // CREATE ANNOTATIONS function createAnnotations

How can I refresh my TableView in titanium?

放肆的年华 提交于 2019-12-13 05:43:49
问题 PopupFirstNameButton.addEventListener('click', FirstNameFunction); function FirstNameFunction(){ infoWin.close(); dispalyFirstName = 'false'; var row = Ti.UI.createTableViewRow({ className:'sectionrow', height:50 }); row.add(FirstNameTextField); tableview.height = row.height + tableview.height; SearchForPatientsButton.top = tableview.height + 80; tableview.insertRowBefore(0,row); FirstNameTextField.addEventListener('click', function() { //DetailedPatientSearchWindow.close(); var

Ti.APP.addEventListener behaving strangely?

隐身守侯 提交于 2019-12-13 05:30:56
问题 MainWindow.js Ti.App.addEventListener('checkFirstName', function(e) { FirstNameTextField.text = 'First Name ' + e.FirstNameValue }); Ti.App.addEventListener('checkLastName', function(e) { LastNameTextField.text = 'Last Name ' + e.LastNameValue }); Ti.App.addEventListener('checkGender', function(e) { GenderTextField.text = 'Gender ' + e.GenderValue }); Ti.App.addEventListener('checkDateOfBirth', function(e) { DateOfBirthTextField.text = 'Date of Birth ' + e.DateOfBirthValue }); ChildWindow.js

Android Build Error: Unable to locate Java VM. Please set JAVA_HOME environment variable

夙愿已清 提交于 2019-12-13 05:29:46
问题 I'm using Ti Studio on Win7, and my project builds and works when I have my Android plugged in via USB and I run using "Android Device". However, when I try to buid it for distribution I get: [ERROR] Program launch failed. Unable to locate Java VM. Please set JAVA_HOME environment variable. I have looked at this thread which describes a similar problem, and verified that JAVA_HOME is set: +>echo %JAVA_HOME% C:\Program Files\Java\jdk1.6.0_29 Also, in Ti Studio I have verified that Preferences-

Does .jss feature is not supported in Titanium mobile SDK

放肆的年华 提交于 2019-12-13 05:23:47
问题 I am trying to use .jss. but i dont know why it is not working. I have a mywindow.js file and i have created a mywindow.jss file. in mywindow.jss file #b { width: 40; height: 50; color: '#324f85'; font: {fontFamily: 'Helvetica-Bold', fontSize: 15}; } in mywindow.js var myButton = Titanium.UI.createButton({ id : "b", title: 'clickME' }); I dont know what i am doing wrong here. Both .js and .jss file are in same location. Using sdk 1.8.1 回答1: Whenever you change (or create) any JSS classes, you