I need to be able to access my listview's simpleadapter from an AsyncTask, so I was told I should declare the arrayAdapter as GLOBAL. How can I do that?
Please exemplify with code (that is what I understand best)
Thank you
I need to be able to access my listview's simpleadapter from an AsyncTask, so I was told I should declare the arrayAdapter as GLOBAL. How can I do that?
Please exemplify with code (that is what I understand best)
Thank you
How any other varible...
class MyActivity extends Activity {
private ArrayAdapter arrayAdapter;
protected void onCreate(Bundle save) {
super.onCreate(save);
....
arrayAdapter = new...
}
class myAsyncTask extends AsyncTask<Void, Void, Void> {
protected Void doInBackground(Void... params) {
arrayAdapter...
}
}
}