Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- main.js
- var win = Ti.UI.currentWindow;
- win.backgroundColor = 'red';
- Ti.Android.currentActivity.addEventListener('pause', function(e){
- setTimeout(function(){Ti.App.fireEvent('pause');},500);
- });
- Ti.Android.currentActivity.addEventListener('resume', function(e){
- Ti.App.fireEvent('resume');
- });
Add Comment
Please, Sign In to add comment