I guess just like me you like to do alert('My message');
instead of:
Ti.UI.createAlertDialog({
message: 'My message'
}).show();
But I'd even more like to do alert('My message', 'My title', myCallback);
instead of:
var dialog = Ti.UI.createAlertDialog({
title: 'My title',
message: 'My message'
});
dialog.addEventListener('click', myCallback);
dialog.show();
So, that's why I use the following drop-in replacement, which is fully compatible with Titanium's.
var alert = require('alert');
alert('Do you like?', 'I am replaced', function () { alert('Good!'); });