HorizontalListView how to fill with array of images?

view story

http://stackoverflow.com – I´m beginner programmer in android, and i need to change my gallery control, and read about Devsmart horizontallistview control, but i can´t run it. I use an array of integers from web service to fill dynamically my old gallery control. How i can fill the horizontalllistview? ...at this point: private void llenagallery() { int i,Id; for ( i = 0; i<(Servicios.length()); i++) { String valor = Character.toString(Servicios.charAt(i)); if (valor.equals("a")) { Id = this.getResources().getIdentifier("a", "drawable", this.getPackage (HowTos)