On 02.08.12, In titanium, by Samuel east
a function for titanium to check if the device is connected to the internet.
function notConnectedAlert(){
var alertDialog = Titanium.UI.createAlertDialog({
title: 'Not connected to the internet',
message: 'Sorry, but Screencasts could not connect to the internet, and could not access data.',
buttonNames: ['Continue']
});
alertDialog.show();
}
if(!Ti.Network.online){
notConnectedAlert();
} 







Quick Signup And Connect
Enter your WordPress.com blog URL
http://.wordpress.com
Proceed