android Httpclient 设置timeout

	private HttpClient httpclient;
	private HttpPost httppost;
	private HttpParams httpParameters;
	private int timeoutConnection = 3000;
	private int timeoutSocket = 5000;
	public WidsetsHttpClient() {
		httpParameters = new BasicHttpParams();// Set the timeout in milliseconds until a connection is established.
		HttpConnectionParams.setConnectionTimeout(httpParameters, timeoutConnection);// Set the default socket timeout (SO_TIMEOUT) // in milliseconds which is the timeout for waiting for data.
		HttpConnectionParams.setSoTimeout(httpParameters, timeoutSocket);
		httpclient = new DefaultHttpClient(httpParameters);
		httppost = new HttpPost(Display.serviceAPI);
	}

 android Httpclient设置超时方法如下:

 

iWidsets公告

android调用平台功能

android Httpclient 设置timeout

androidj2me移植之clipRect

android混淆(Obfuscate)

How to destroy an Activity in android

android应用程序logcat命令

android开玩笑之创建xml文件

androidj2me之清屏(clearScreen)

androidview获取getWidth()getHeight()

android之创建和读取自定义资源文件

android之显示Log

androd之绘制文本(FontMetrics

 

你可能感兴趣的:(android,xml,socket,公告)