The usage is:
activity.showAlert(title, message, btnLabel, btnCallback);
The last two parametter can be null.
By default btnLabel will be 'Ok' and pressing the button will close the alert.
If btnCallback is not null, the alert will be closed, and the function will
be executed.
Example:
activity.showAlert('ERROR',
'Words should be at least 3 character long', null,
function() {child.focus();});
The usage is: activity.showAlert(title, message, btnLabel, btnCallback);
The last two parametter can be null. By default btnLabel will be 'Ok' and pressing the button will close the alert. If btnCallback is not null, the alert will be closed, and the function will be executed. Example: activity.showAlert('ERROR', 'Words should be at least 3 character long', null, function() {child.focus();});