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 : '#ccc', | |
| title : 'Android Cloud Push Notification' | |
| }); | |
| var CloudPush = require('ti.cloudpush'); | |
| CloudPush.debug = true; | |
| CloudPush.enabled = true; | |
| CloudPush.showTrayNotificationsWhenFocused = true; | |
| CloudPush.showTrayNotification = true; |
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
| (function(){ | |
| var ACS = require('ti.cloud'), | |
| env = Ti.App.deployType.toLowerCase() === 'production' ? 'production' : 'development', | |
| username = Ti.App.Properties.getString('acs-username-'+env), | |
| password = Ti.App.Properties.getString('acs-password-'+env); | |
| // if not configured, just return | |
| if (!env || !username || !password) { return; } | |
| /** | |
| * Appcelerator Cloud (ACS) Admin User Login Logic |
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 _listItems = []; | |
| function searchChange(evt) { | |
| _listItems = []; | |
| if (evt.value) { | |
| Ti.API.info(evt.value); | |
| $.list.searchText = evt.value; | |
| for (var i = 0, | |
| j = listItems.length; i < j; i++) { |
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 fb = require('facebook'); | |
| var win = Ti.UI.createWindow({ | |
| title : 'Login/Logout', | |
| backgroundColor : '#fff', | |
| }); | |
| var label = Ti.UI.createLabel({ | |
| text : 'Logged In = ' + fb.loggedIn, | |
| color : '#000', | |
| font : { |
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
| // this sets the background color of the master UIView (when there are no windows/tab groups on it) | |
| var https = require('appcelerator.https'); | |
| var securityManager = https.createX509CertificatePinningSecurityManager([ | |
| { |
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
| Titanium.UI.setBackgroundColor('#000'); | |
| var win = Titanium.UI.createWindow({ | |
| title : 'Tab 1', | |
| backgroundColor : '#fff' | |
| }); | |
| var camera = Ti.UI.createButton({ | |
| title : 'Camera', | |
| height : 50, |
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:'#336699', | |
| }); | |
| var view = Titanium.UI.createView({ | |
| borderRadius:10, |
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 date = new Date(); | |
| Ti.API.info('populateList end' + date.getTime()); | |
| var performanceData = []; | |
| for(var i=0,j=2; i<j; i++){ | |
| performanceData.push({ | |
| "template" : "performance", | |
| "codeLabel" : { | |
| "text" : "P1" |
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
| To install appxbundle on windows phone via computer we need to make sure the windows device is unlocked and Microsoft visual studio is installed in the computer. Check the following steps: | |
| Step 1. Connect the windows phone to the computer. Open Microsoft visual studio> Navigate to Tools> Windows Phone 8.1 > Application Deployment | |
| Step 2. Select the target to device and browse the appxbundle from computer. | |
| Step 3. After waiting some time, the application deployment window will provide the app completion status. Then press Deploy button and check in the windows phone device . |
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
| $.index.open(); |