Android: heavy traffic on server causes app to force close
Posted
by
user522559
on Stack Overflow
See other posts from Stack Overflow
or by user522559
Published on 2011-01-13T21:45:08Z
Indexed on
2011/01/13
21:53 UTC
Read the original article
Hit count: 212
I have developed an app to communicate with my own server and published it. However, sometimes the app force closes. I know there is no bug in the code because the app works properly most of the time, but sometimes it is waiting for an answer from the server forever. I think this is due to the fact that so many people are using the app, and the app refreshes every 1 second or so, so this heavy traffic causes the server to take a large amount of time to respond. So how do you take care of such a use case? should I have a use case where if the server does not respond after some time you just stop the app and throw a message saying that the server is not responding or something like that?
© Stack Overflow or respective owner