Skip to content

Instantly share code, notes, and snippets.

Created November 28, 2012 19:37
Show Gist options
  • Select an option

  • Save anonymous/4163538 to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/4163538 to your computer and use it in GitHub Desktop.
Rodar serviço
var win = Ti.UI.createWindow({
backgroundColor: '#fff',
fullscreen: false,
exitOnClose: false
});
var intent = Titanium.Android.createServiceIntent( { url: 'services.js' } );
intent.putExtra('interval', 2000);
var service = Titanium.Android.createService(intent);
service.start();
win.open();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment