我正在使用下面的代码来检查Android中的连接超时时间。最重要的是,如果连接实际超时,我该如何显示吐司?任何建议? /*Client timeout*/
HttpParams httpParameters = new BasicHttpParams();
// Set the timeout in milliseconds until a connection is established.
我正在发出HTTP请求。我想要检查一下,如果我在10秒内没有得到回复,我会退出循环。以下是我的代码。在发出HTTP请求时处理这个问题最简单的方法是什么?建议欢迎。如果你能让我知道我应该在我的代码中包含这些建议的位置,这将非常有帮助。由于 protected String doInBackground(String... params) {
if (STATUS_STARTED != s