i have code that fetches a string on php page using a class that extends AsyncTask
. Now I need to change button color on UI according to the string value. But I discovered that v
cannot change it in AsyncTask
class so v need to pass again the resultString to main thread. How should i do that?
Here is my code:
MainActivityClass
{
//button color changes acc to php page string
}
AsyncTaskClass
{
String result=fetch string data from php using doInBackground method;
//cant change button color here need to pass result to main activity
}