我去了文檔,發現這些 #空閒連接將自動關閉的時間。 #設置爲infinite以完全禁用空閒連接超時。 空閒超時= 10秒 # Defines the default time period within which the application has to
# produce an HttpResponse for any given HttpRequest it received.
#
我有一個問題,我還沒有解決,我需要幫助。 當互聯網速度慢時,應用程序崩潰。我怎麼能檢查asyntask中的連接超時。 我做了一個應用程序,有時連接到網絡服務來獲取數據和我做,使用異步任務 我想就連接超時警告對話框時,用戶可以選擇他們是否想如果重試或取消,他們選擇重試,它會嘗試重新連接 public class login extends AsyncTask<Void,Void,Void> {