titanium

appcelerator retrieve all files from directory

做~自己de王妃 提交于 2019-12-24 06:45:24
问题 im working on an Ipad paint application and i want to retrieve all files from a specific directory, and delete the last saved image. In the appcelerator simulator it all works perfect, but when i run my application on my ipad it stops at var fid = dfo.getDirectoryListing(); I don't know what i'm doing wrong because i know he saves the png files in the test folder on ipad (tested it with alert). //going to the folder, this works he shows alert var dfo = Titanium.Filesystem.getFile(Titanium

select particular element in row of table view in titanium

拟墨画扇 提交于 2019-12-24 04:28:34
问题 hi I am developing Android application using Titanium. I want to change image on click event.But I am unable to select particular image in table view.I used following code: var user_table = Ti.UI.createTableView({minRowHeight:5.length,hasChild:true}); var data = []; for (var i=0;i<5.length;i++) { var row = Ti.UI.createTableViewRow({height:'auto',className:"row"}); var username = Ti.UI.createLabel( { text:'user name', height:'auto', font:{fontSize:12, fontFamily:'Helvetica Neue', color:'#000'}

Appcelerator Titanium JS dosen't parse Date() as expected

╄→гoц情女王★ 提交于 2019-12-24 04:21:47
问题 I am using Appcelerator Titanium, and I'm trying to parse a date string as a new Date object and then use the .getTime() function but it keeps returning "NaN" var d = new Date("2014-02-01T00:00:00"); var time = d.getTime(); console.log(time); // returns NaN Am I doing anything wrong here? It works when I create a new date for now, like this: var d = new Date(); var time = d.getTime(); console.log(time); // returns correct value I can't see why the first example is working but the second

Appcelerator Titanium JS dosen't parse Date() as expected

纵然是瞬间 提交于 2019-12-24 04:21:40
问题 I am using Appcelerator Titanium, and I'm trying to parse a date string as a new Date object and then use the .getTime() function but it keeps returning "NaN" var d = new Date("2014-02-01T00:00:00"); var time = d.getTime(); console.log(time); // returns NaN Am I doing anything wrong here? It works when I create a new date for now, like this: var d = new Date(); var time = d.getTime(); console.log(time); // returns correct value I can't see why the first example is working but the second

Empty array after adding elements using Titanium Appcelerator mobile 1.7.2

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 03:05:31
问题 I'm using Titanium Appcelerator mobile API 1.7.2. When creating an array, I'm getting some odd results. Is it my syntax? container.textBoxArray = new Array(); container.textBoxArray[0] = createPasswordTextField(options, '0%'); container.textBoxArray[1] = createPasswordTextField(options, '25%'); Ti.API.log(container.textBoxArray == null); Ti.API.log('len: ' + container.textBoxArray.length); The results of the output are 0 (for false) and 'len: 0' respectively. Anyone know why? Adam Edit:

Sharing global variables between two js files

。_饼干妹妹 提交于 2019-12-24 00:59:25
问题 I'm working with two js files and sharing variables between them in a titanium app. In my main app.js I have 3 variables associated with each row in a table. I have an event listener for when a row is clicked to open a modal view whose components are in a separate js file. My three variables are below and on the click event I have an alert of the 3 variables and the 3 global variables. var titleText = titleInRow.text; var artistText=artistInRow.text; Ti.App.myGlobalSongVar = titleText; Ti.App

Titanium 3.1.0 - Emulator process exited with code 1 - Can't compile APK

霸气de小男生 提交于 2019-12-24 00:45:36
问题 I have this issue with Titanium Studio. I can't compile my project for Android. I try to Run or Debug to project, but I've got this message: Titanium Command-Line Interface, CLI version 3.1.0, Titanium SDK version 3.1.0.GA Copyright (c) 2012-2013, Appcelerator, Inc. All Rights Reserved. [INFO] : Running emulator process: python "C:\Users\Dev\AppData\Roaming\Titanium\mobilesdk\win32\3.1.0.GA\android\builder.py" "emulator" "MyApp" "E:\Developpement\Mobile\SDKs\Android" "E:\Developpement\Mobile

Android application: how to use the camera and grab the image bytes?

孤街醉人 提交于 2019-12-24 00:03:50
问题 I'm trying to create a small app for Android that takes a picture using the device's camera and put's a PNG frame on top of it. This way the final saved picture will have a beach on top of it, or hats, or anything. Does anyone have any sample programs with this behavior? 回答1: Have a look at the SDK documentation on using the image capture intent here. I start my image capture intent like this: Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); startActivityForResult(intent, CAPTURE

Titanium : Exception Occured While Building Android Project [duplicate]

浪子不回头ぞ 提交于 2019-12-23 22:03:51
问题 This question already has answers here : Exception Occured While Building Android project (2 answers) Closed 6 years ago . OS: Linux mint 14. Following error occurs when I try to run my project. [TRACE] Writing out AndroidManifest.xml [ERROR] Exception occured while building Android project: [ERROR] Traceback (most recent call last): [ERROR] File "/home/aqeel/.titanium/mobilesdk/linux/3.1.0.GA/android/builder.py", line 2528, in <module> [ERROR] builder.build_and_run(False, avd_id, debugger

Titanium SDK 3.2.0 - My Android app's STOP at splash screen

和自甴很熟 提交于 2019-12-23 19:11:20
问题 [Android] I have an Alloy Project After my Titanium SDK's upgraded to 3.2.0, I "Clean" my project and.. .. When I "Debug" on my Device, my App is working very well. But when I "Run" on my Device, my App is STOP at splash screen. Please help me. Thanks!!! 回答1: I met the same problem and solved by deleting device sdcard/appid/deploy.json. just like: sdcard/com.xxx.xxx/deploy.json Hope this will help you. 来源: https://stackoverflow.com/questions/20764718/titanium-sdk-3-2-0-my-android-apps-stop-at