titanium

Having trouble to get the files from android emulator (Titanium)

随声附和 提交于 2019-12-18 07:25:15
问题 guys! I have trouble to get files from my android emulator! ① Here is my emulator info: Genymotion for personal use - Samsung Galaxy Note 3 - 4.4.4 - API 19 - 1080x1920 ② And here is the file's tree of the emulator: I had stored two mp3 files for test in the Internal storage directory, and the path is /storage/emulated/0/Download . As you can see, the two mp3 files are in the Download directory. My trouble is that I can never get the two files right path. ③ Here is my code: if(Ti.Filesystem

separation of logic and UI in titanium (javascript)

安稳与你 提交于 2019-12-18 04:54:38
问题 i'm new to appcelerators titanium and javascript and i'm interested in coding an iphone app. i recognized that there is a need of "many" code for creating the UI. that's no problem so far, but i tend to separate that code from my application logic wisely. what are the best practices? [update] tweetanium is a great example how to structure a titanium mobile application 回答1: ok, i just found a cool practice. i include the con_file.js with the application logic the view_file.js with Titanium

Appcelerator Titanium: CSS width won't work with percentages

夙愿已清 提交于 2019-12-14 03:56:29
问题 I have made a HTML project in Appcelerator. I want a full screen canvas so in CSS I set the property to 100% (without quotes) which I found out doesn't work with Appcelerator. I've tried '100%' with quotes and Ti.UI.SIZE which both size it at a weird size that has the same aspect ratio seen in the image below. I have coloured the canvas green and the body yellow so you know its not the parent that's the problem. I have tried searching but HTML only apps don't seem to be too popular with

Titanium CLI on Win 7 - “EPERM, operation not permitted 'C:\Program Files\Gemeinsame Dateien'”

隐身守侯 提交于 2019-12-14 03:19:46
问题 I don't know what else to do as I tried everything I could find so far. Situation: I am trying to use Titanium via CLI on my Windows 7 Laptop. Installing Node.js, Titanium, Titanium sdk, Android sdk all works fine. PS C:\Windows\system32> node -v v0.12.9 PS C:\Windows\system32> ti -v 5.0.6 Installed SDKs: 4.0.0.GA [selected] Trying ti info as well as building something produces the following Error: PS C:\Windows\system32> ti info Titanium Command-Line Interface, CLI version 5.0.6, Titanium

Error running Android emulator from Titanium Studio

一个人想着一个人 提交于 2019-12-14 02:59:35
问题 Basically trying to get the default sample project (which is linked to here) to run in the Android simulator. (I'm on Windows XP-SP3, see the "Diagnostics Log" output in the question's footer for more config info, if you have any questions about configs let me know.) Here's what I've done so far: Installed the current version of Titanium Mobile SDK Version: 2.0.1 Installed the Java SDK "jdk-6u31-windows-i586.exe" Installed the Android SDK Manager r18, then the following packages: Android SDK

Titanium - Perform Action when user clicks on Android Notification

百般思念 提交于 2019-12-14 02:09:16
问题 I have code that displays an android notification and when someone clicks on that notification, the app comes to the foreground, if it was in the background before. But I want to additionally call a javascript function or run a javascript file after the app came to the forground. How can I do that? app.js if(!Ti.App.Properties.getBool("displayedNotifications")){ var notifications = ["Apple","Orange","Banana"]; for(var i = 0; i < notifications.length; i++){ var intent = Ti.Android.createIntent

Cannot run an application in titanium

↘锁芯ラ 提交于 2019-12-14 00:15:07
问题 I am newbie on Titanium , I have installed Titanium on my windows based laptop. Also imported Kitchen Sink application it in studio. I have set all the path variables also latest Android SDK . Also i have changed Run Configuration log and all. But when i try to run an application it gives me an error. I am trying to run it on android emulator of Titanium studio . Titanium Command-Line Interface, CLI version 3.1.1, Titanium SDK version 3.1.1.GA Copyright (c) 2012-2013, Appcelerator, Inc. All

Titanium: How to add Contact in Phone book in Android?

断了今生、忘了曾经 提交于 2019-12-13 20:36:01
问题 I want to add Contacts in phone book. I can add contacts in iPhone properly but in documentation I got to know that in Android, phone book is ReadOnly !!! Is there any other way to add ? Thanks.. 回答1: Solved ! I got help from this Link . We can add contacts in Android by Intent. if (Titanium.Platform.name == 'android') { var intent = Ti.Android.createIntent ({ action: 'com.android.contacts.action.SHOW_OR_CREATE_CONTACT', data: 'mailto:'+firstName+' '+lastName }); intent.putExtra('email',

How to get a transition for windows element like in scroll views?

心不动则不痛 提交于 2019-12-13 20:26:09
问题 I am trying to make a Demo in Appcelerator here is the code for it. var tabGroup = Titanium.UI.createTabGroup(); var main_win = Titanium.UI.createWindow({ title:'Tab 1', backgroundColor:'#fff' }); var win1 = Titanium.UI.createWindow({ title:'Tab 1', backgroundColor:'#fff' }); var tab1 = Titanium.UI.createTab({ title:'Tab 1', window:win1 }); var label1 = Titanium.UI.createLabel({ text:'I am Window 1', win:win1 }); win1.add(label1); var win2 = Titanium.UI.createWindow({ title:'Tab 2',

Titanium build error: Android

纵然是瞬间 提交于 2019-12-13 17:12:06
问题 Facing one issue continuously since last few days. Whenever I build anything to see the stuff in Emulator getting below error: [ERROR][CheckinTask( 169)] Checkin failed: https://android.clients.google.com/checkin (request #0) [ERROR][CheckinTask( 169)] java.net.UnknownHostException: android.clients.google.com After this error in logs emulator doesn't respond properly. My old code even kitchen sink demo not working though it was working properly before. 回答1: I feel like I'm constantly battling