I'm using an AsyncTask to perform a login task. The task connects to a PHP script and the returns a JSON object. The JSON object includes a user_id if the authentication authenticates correctly, it also returns a boolean if the login succeeds.
I want the UI thread to run an activity when the boolean returns true, and a different activity if it returns false.
Can i use OnExecutePost()
to do this? Can someone guide me on how to do this please?