0

I made a login application, that sends login data to my server, and the server then returns what type of user it is(admin, etc...)

I do that with the OkHttp library, and for the http request I made a second class extending Async. Now I want to know I'm my main class(activity) what my website responded. How can I give the message: "hey I finished loading, here's the variable" to my main page, so I can wait there for the message and then react according to its outcome?

leodriesch
  • 5,308
  • 5
  • 30
  • 52

1 Answers1

0

I had the exact same problem a few months back now. Found this back then and it worked for me. Hope it helps!

Return value from AsyncTask class onPostExecute method

Zach R
  • 16
  • 1
  • while this may be useful, it does not answer the question and should not be listed as an answer. please post things like this as comments – Claire May 16 '18 at 22:44