How can I render an ArrayList<ImageView> got from an AsyncTask in onPreExecute()?

view story

http://stackoverflow.com – I'm new here and with Android development. I'm trying to make a slide gallery with ViewPager. This is my main activity: public class HomeActivity extends AbstractActivity { ArrayList<ImageView> imagens = new ArrayList<ImageView>(); ViewPager slideshow; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_home); slideshow = (ViewPager) findViewById(R.id.slideshow); // inicia a task json new aTask(this).execute(); } @Override publi (HowTos)