Code example for SocketTimeoutException

Methods: getMessage

0
				} else { 
					receiver.send(STATUS_ERROR, b);
				} 
			} 
		} catch (SocketTimeoutException e) {
			Log.e(TAG, e.getMessage());
			receiver.send(STATUS_CONNECTION_ERROR, b);
		} catch (Exception e) {
			Log.e(TAG, e.getMessage());
			receiver.send(STATUS_ERROR, b);
		} 
	} 
 
	private boolean doLogin(ResultReceiver r, Bundle b, String userName,
			String password) throws IOException, ClientProtocolException {
 
		ServerURLGenerator security = new ServerURLGenerator("Security");
		security.addParameter("method", "SignIn");
		security.addParameter("username", userName);
		security.addParameter("password", password);
		HttpResponse response = security.getServerResponse();