I have a problem updating a TextView on my MainActivity form a class which is Async I have seen that I need to set the Context of the second class to that of the MainActivity but I don't know how to achieve this in this scenario. My app looks like this.
class RestOperation extends AsyncTask<String, Void, Void> {
@Override
protected Void doInBackground(String... params) {
//Java.net Http transaction happens here
}
@Override
protected void onPostExecute(Void result) {
//I wish to set the value of the TextView with the result here!
}