Hey,
So I’m newish to Android and I have a class that fails immediately after it starts, and I deduced that it is because it times out. I was looking around the android documentation and found AsyncTask. I think that it is the solution to my problem-run the computation intensive process in the background. I don’t really understand how to implement it though. My return type should be void because it doesn’t return anything, it just changes a bunch of Button’s colors based on an integer received from a different class. How can I implement AsyncTask? or should I be using something else?
Thanks.
Hey, So I’m newish to Android and I have a class that fails immediately
Share
Yes, AsyncTask is what you want. The official tutorial is pretty helpful. Look into the
onPostExecute()method to figure out how to end any sort of progress bar you may have.