Pretty new in java. Very simple issue here but really don't understand whats the problem...
I have an array with strings. The array elements are url images. I have a view element which is changing the images. What I need is to set the image with an element from the array.
imageSwitcher.setImageUrl(Last_images[1].toString());
Log.d("D1",Last_images[1].toString());
In the first line if I give it for example "www.example.com/1.jpg" its working. However when I give it the array element its not working. In the log.cat its showing the right url...
In the onCreate I have : Last_images = new String[10]; and in the class values I have : String[] Last_images = null;
Coming from PHP and I'm really confused why it is not working and I really think its something easy.
imageSwitcherclass?Last_images[1]will do ,toString()is redundant . What is the issue ? What is the content ofLast_images[1]? Pointer, an array with 10 elements will be indexed from 0 to 9.