This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var win = Ti.UI.createWindow({ | |
| backgroundColor:'white' | |
| }); | |
| win.add(Ti.UI.createLabel({ | |
| text:'A label that is being shown' | |
| }) | |
| ); | |
| win.addEventListener('load', function() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Ti.include('/testLibrary.js'); | |
| var module = require('/testModule').call(); | |
| /** | |
| * The output of above call is globalClass undefines in android. But in iOS this works fine | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var win = Titanium.UI.createWindow({ | |
| title: 'Main', | |
| exitOnClose: true, | |
| fullscreen: false, | |
| navBarHidden: false, | |
| backgroundColor: 'gray' | |
| }); | |
| win.addEventListener('open', function() { | |
| var GeoModule = require('geolocation'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var win = Ti.UI.createWindow({ | |
| layout: 'vertical', | |
| backgroundColor: 'white' | |
| }); | |
| var CloudPush = require('ti.cloudpush'); | |
| CloudPush.addEventListener('callback', function (evt) { | |
| alert(evt.payload); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| package="com.appcelerator.acs" android:versionCode="1" | |
| android:versionName="1"> | |
| <uses-sdk android:minSdkVersion="8" /> | |
| <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> | |
| <uses-permission android:name="android.permission.READ_PHONE_STATE" /> | |
| <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | |
| <uses-permission android:name="android.permission.INTERNET" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var win = Titanium.UI.createWindow(); | |
| var win1 = Titanium.UI.createWindow({ | |
| backgroundColor:"red", | |
| title:"Red Window" | |
| }); | |
| win1.addEventListener('click', function(){ | |
| nav.open(toolsWindow); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 05-08 15:11:29.101: I/ActivityManager(21058): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.appc.test/._1testyActivity } | |
| 05-08 15:11:29.171: I/ActivityManager(21058): Start proc com.appc.test for activity com.appc.test/._1testyActivity: pid=25534 uid=10073 gids={1015, 1006, 3003} | |
| 05-08 15:11:30.841: I/TiApplication(25534): (main) [0,0] checkpoint, app created. | |
| 05-08 15:11:31.201: I/TiApplication(25534): (main) [366,366] Titanium 2.1.0 (2012/05/02 17:34 85e7af3) | |
| 05-08 15:11:31.921: I/TiApplication(25534): (main) [717,1083] Titanium Javascript runtime: v8 | |
| 05-08 15:11:32.001: I/ActivityManager(21058): Process com.android.deskclock (pid 25231) has died. | |
| 05-08 15:11:32.171: I/TiRootActivity(25534): (main) [0,0] checkpoint, on root activity create, savedInstanceState: null | |
| 05-08 15:11:33.901: E/TiApplication(25534): (KrollRuntimeThread) [1733,1733] APP PROXY: ti.modules.titanium.app.AppModule@44a24ab0 | |
| 05-08 15:11:34.101: I/ActivityManager(21 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //contacts.js | |
| //OF.mobile.UI.update_contacts = function(window){ | |
| //window.subHeader.descriptionView.layout = 'vertical'; | |
| var win = Ti.UI.createWindow({ | |
| layout : 'vertical' | |
| }); | |
| //ui/window.js | |
| // this.scrollView = OF.mobile.UI.createScrollView({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Run test 1 | |
| var gced = require('create_gced'); | |
| var win = gced.create_gced(); | |
| win.open(); | |
| /* | |
| //When running by second time enable this: | |
| setTimeout( | |
| function(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // B.js | |
| Ti.API.info(' <<< B.JS >>>'); | |
| require('C'); |