Set the timeout value upto which the application waits until the request reaches the server.
preference.setPreference(ISDMPreferences.CONNECTION_TIMEOUT_MS, "1000");