I put that error message into google as I am not an Android developer and have no idea about the solution. This is the first link:
Googles first result[
^]
In it there is an example of converting a method to be an AsyncTask along with a note that you must remember to add something to the manifest file.
I suggest you have a read as I believe it should solve your problem.