titanium

Javascript concatenating numbers, not adding up

强颜欢笑 提交于 2020-02-10 04:23:22
问题 It keeps concatenating my numbers into 2111 instead of 5. Why is this? I've tried using parseInt with no luck. res3 btw represents a query into my database that I'm executing. var dt_total_hours = 0; dt_total_hours += res3.fieldByName(dt_cost_per_hour); dt_total_hours += res3.fieldByName(dt_prod_dt_hours); dt_total_hours += res3.fieldByName(dt_prod_rate); dt_total_hours += res3.fieldByName(dt_cost_per_unit); dt_total_hours += res3.fieldByName(dt_scrap_startup_cost); dt_total_hours += res3

How Does Appcelerator Titanium Mobile Work?

穿精又带淫゛_ 提交于 2020-02-08 21:40:04
问题 I'm working on building an iPhone app with Titanium Mobile 1.0 and I see that it compiles down to a native iPhone binary. How does this work? Seems like it would take a lot of heavy lifting to analyze the JavaScript code and do a direct translation into Objective-C without having a superset language like 280 North's Objective-J and Cappuccino. 回答1: Titanium takes your Javascript code, analyzes and preprocesses it and then pre-compiles it into a set of symbols that are resolved based on your

How Does Appcelerator Titanium Mobile Work?

自作多情 提交于 2020-02-08 21:39:08
问题 I'm working on building an iPhone app with Titanium Mobile 1.0 and I see that it compiles down to a native iPhone binary. How does this work? Seems like it would take a lot of heavy lifting to analyze the JavaScript code and do a direct translation into Objective-C without having a superset language like 280 North's Objective-J and Cappuccino. 回答1: Titanium takes your Javascript code, analyzes and preprocesses it and then pre-compiles it into a set of symbols that are resolved based on your

Titanium index.html

自闭症网瘾萝莉.ら 提交于 2020-01-26 04:08:29
问题 ive just installed titanium and the android sdk for development. In my project i have an index.html but its not loading that when i do a build, it keeps loading a 'welcome to titanium' html page which for the life of me i just can't find anywhere to see where its being loaded from. How the heck do i set my index.html to be the one that is loaded when the app first loads? I have tried adding index2.html (index2 as a test) but its still loading this welcome to titanium url even when i make a

App called “NFC services” replacing my own app

自闭症网瘾萝莉.ら 提交于 2020-01-25 23:43:30
问题 I want my Android app to start after scanning an NFC tag, so to make some tests I modified the tiapp.xml of Favebooks (a simple tutorial app for Titanium) by adding the following lines: <android xmlns:android="http://schemas.android.com/apk/res/android"> <manifest> <uses-permission android:name="android.permission.NFC"/> <uses-permission android:name="android.permission.CALL_PHONE"/> <uses-sdk android:minSdkVersion="14"/> <uses-feature android:name="android.hardware.nfc" android:required=

App called “NFC services” replacing my own app

天大地大妈咪最大 提交于 2020-01-25 23:41:53
问题 I want my Android app to start after scanning an NFC tag, so to make some tests I modified the tiapp.xml of Favebooks (a simple tutorial app for Titanium) by adding the following lines: <android xmlns:android="http://schemas.android.com/apk/res/android"> <manifest> <uses-permission android:name="android.permission.NFC"/> <uses-permission android:name="android.permission.CALL_PHONE"/> <uses-sdk android:minSdkVersion="14"/> <uses-feature android:name="android.hardware.nfc" android:required=

App called “NFC services” replacing my own app

吃可爱长大的小学妹 提交于 2020-01-25 23:41:32
问题 I want my Android app to start after scanning an NFC tag, so to make some tests I modified the tiapp.xml of Favebooks (a simple tutorial app for Titanium) by adding the following lines: <android xmlns:android="http://schemas.android.com/apk/res/android"> <manifest> <uses-permission android:name="android.permission.NFC"/> <uses-permission android:name="android.permission.CALL_PHONE"/> <uses-sdk android:minSdkVersion="14"/> <uses-feature android:name="android.hardware.nfc" android:required=

Titanium How to add 2 merge two Ti.Media.sound objects?

最后都变了- 提交于 2020-01-25 10:52:10
问题 //Assuming cricket.wav file has audio information of 5 secs. var file1 = Titanium.Filesystem.getFile(Titanium.Filesystem.resourcesDirectory,'cricket.wav'); //Assuming mahamed.wav file has audio information of 25 secs. var file2 = Titanium.Filesystem.getFile(Titanium.Filesystem.resourcesDirectory,'test.wav'); //How do i merge both file1 and file2 and create a file which should have audio information of 30 secs.? var file = file1 + file2; // This is giving me an error. I need file which will

Get URL from remote URL in webview and open it in safari

烈酒焚心 提交于 2020-01-25 05:55:55
问题 I have a webview in my application and I also have a website online. I have loaded my website in my webview and when I press a link in my website I want to open that link in Safari and not in my webview, here´s what I have done. I have my webview: var webview = Titanium.UI.createWebView({ url: 'http://www.TEST.com', // dummy url now top: 42, left: 0, width: 310, height: 275 }); My HTML file (which I will put online so I will only access it trough my www address): <!DOCTYPE html> <html lang=

Get URL from remote URL in webview and open it in safari

牧云@^-^@ 提交于 2020-01-25 05:55:26
问题 I have a webview in my application and I also have a website online. I have loaded my website in my webview and when I press a link in my website I want to open that link in Safari and not in my webview, here´s what I have done. I have my webview: var webview = Titanium.UI.createWebView({ url: 'http://www.TEST.com', // dummy url now top: 42, left: 0, width: 310, height: 275 }); My HTML file (which I will put online so I will only access it trough my www address): <!DOCTYPE html> <html lang=