I am receiving a FATAL EXCEPTION: AsyncTask #1
error.
I have not created a Async Task I simply called the code below.
I am calling the following from a class that connects to the network:
Toast.makeText(context, "Connection Successful", Toast.LENGTH_LONG).show();
context
has been passed through in the constructor from the MainActivity
.
I am not sure what I am doing wrong here.