Returning an array[] from AsyncTask back to Main Activity

view story

http://stackoverflow.com – I am trying to return an array from my AsyncTask back to my Activity as I am trying to create a ListView from that array. Unfortunately, the program bounds error because it wouldn't let me return an array. My codes are as below: MainMenu Class: public class MainMenu extends Activity { String username; public String[] returnValue; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main_menu); username ="user1"; if (checkInternetConnection()) { try { MainAsyncTask mat = new MainAsyncTa (HowTos)