Well the title says it all. I'm not sure why it doesn't want to work.
This is in an AsyncWorker so that might be the issue. Also the variables are outside of a protected method but the same happens when inside.
private class MyAsyncTask extends AsyncTask<String, String, String> {
ListView workersList = (ListView)findViewById (R.id.workers_list);
ArrayList<String> itemsList = new ArrayList<String>();
protected String doInBackground(String... arg0) {
Then later on
ArrayAdapter<String> adapter = new ArrayAdapter<String>(android.R.layout.simple_list_item_1, itemsList);