return value in android button

I want to return the imageUrls array for this part of code
"adapter = new LazyAdapter(this, imageUrls);" when the button click
its error say you cannot return value in void method, i dont know to use what method to return the value,