You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to the way we abstracted away the actual HTTP handling, unless we do some major refactoring, it will be difficult to put the HTTP handling into an AsyncTask.
An AsyncTask is a helper class that will do a background process for you (and allow you to update the UI) so you don't block the main UI thread, making the user think the app is stalled or hanging. http://developer.android.com/reference/android/os/AsyncTask.html
Due to the way we abstracted away the actual HTTP handling, unless we do some major refactoring, it will be difficult to put the HTTP handling into an AsyncTask.
An AsyncTask is a helper class that will do a background process for you (and allow you to update the UI) so you don't block the main UI thread, making the user think the app is stalled or hanging.
http://developer.android.com/reference/android/os/AsyncTask.html
See https://github.com/jab416171/Android-Battleship-Client/blob/master/src/edu/neumont/battleship/http/RefreshTask.java and https://github.com/jab416171/Android-Battleship-Client/blob/master/src/edu/neumont/battleship/BattleshipActivity.java#L48-54 to see how I used AsyncTask for the refresh button.
@BrentLee
@glenwatson
The text was updated successfully, but these errors were encountered: