I\'m connecting to a simple RSS feed using HTTPUrlConnection. It works perfectly. I\'d like to add a timeout to the connection since I don\'t want my app hanging in the even
A zero value means infinit time out, which means connection must occure and normally zero is default:
connection.setConnectTimeout(0); connection.setReadTimeout(0);
refer to here
http.setConnectTimeout(15000); http.setReadTimeout(15000);