Exception handling question when asynctask communicates with the server.

Asked 1 years ago, Updated 1 years ago, 131 views

The server has been parsing in JSON format through async asynchronous communication. However, sometimes if the server is being checked or there is a problem with the server, an error appears immediately after about a second, and it is forced to terminate. When there is a problem with the server, I want to tell you that it is not a forced shutdown, but a server problem in a dialog or other way, but how should I do it? Should I setconnecttimeout in async background? If you set the timeout as 10 seconds, you don't know where to code after 10 seconds. Is it on the post?

android android-asynctask json exception

2022-09-22 21:10

1 Answers

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.