Recent releases have been pre-built using cross-compilers and this script and are downloadable below.
If you have found these packages useful, give me a shout out on twitter: @adammw
| #!/usr/bin/ruby | |
| # | |
| # This script fixes /usr/local only. | |
| # | |
| # 6th January 2010: | |
| # Modified the script to just fix, rather than install. - rpavlik | |
| # | |
| # 30th March 2010: | |
| # Added a check to make sure user is in the staff group. This was a problem | |
| # for me, and I think it was due to me migrating my account over several |
| /** | |
| * This sample lets you record and share video with Appcelerator Titanium on Android. | |
| * REQUIRES THE 1.6.0 RC OF TITANIUM MOBILE SDK | |
| * http://developer.appcelerator.com/blog/2011/02/release-candidate-for-titanium-mobile-1-6-0.html | |
| */ | |
| /** | |
| * First, create our UI. We'll have two buttons: record, and share. | |
| */ | |
| var win = Titanium.UI.createWindow({ |
| var circle = Titanium.UI.createView({ | |
| height:200, | |
| width:200, | |
| borderRadius:50, | |
| backgroundColor:'#336699', | |
| top:10, | |
| left:50 | |
| }); | |
| currentWindow.add(circle); |
| /** | |
| * The following snippet will ask the user to rate your app the second time they launch it. | |
| * It lets the user rate it now, "Remind Me Later" or never rate the app. | |
| */ | |
| var win = Ti.UI.createWindow({ backgroundColor: '#fff' }); | |
| win.addEventListener('open', checkReminderToRate); | |
| win.add(Ti.UI.createLabel({ text: 'This is a simple app that will remind you to rate it.' })); | |
| win.open(); | |
| function checkReminderToRate() { |
| tmp | |
| .DS_Store | |
| build/iphone/* | |
| !build/iphone/.gitignore | |
| build/android/* | |
| !build/android/.gitignore | |
| .settings | |
| build.log | |
| .fastdev.lock |
| [titanium] | |
| api_token=自分のAPI Token | |
| team_token=Team Token | |
| distribution_list=配布先のDistribution list名 |
| //Add behavior for UI | |
| label.addEventListener('click', function(e) { | |
| var intent = Ti.Android.createIntent({ | |
| action: "android.speech.action.RECOGNIZE_SPEECH" | |
| }); | |
| intent.putExtra("android.speech.extra.LANGUAGE_MODEL", "free_form"); | |
| intent.putExtra("android.speech.extra.PROMPT","VoiceRecognitionTest"); | |
| //intent発行&音声認識結果受け取り | |
| Ti.Android.currentActivity.startActivityForResult( | |
| intent, |
| // Set master UI background color | |
| Ti.UI.backgroundColor = '#000'; | |
| // Set vars | |
| var winMain, | |
| vwWebMain, | |
| lblValue, | |
| vwBtn; | |
| // Set global event listener as Firebase callback |
Recent releases have been pre-built using cross-compilers and this script and are downloadable below.
If you have found these packages useful, give me a shout out on twitter: @adammw
| /** | |
| * | |
| * this code was inspired by the work done by David Riccitelli | |
| * | |
| * Copyright 2011 Aaron K. Saunders, Clearly Innovative Inc | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * |