android - How to execute a method for each item in a listview -


i have arrayadapter<myservice> , each item in listview have 1 button executes async call download file http request, working pretty well.

now, created button "download all" in activity, button execute items in listview, have no idea how that. should iterate through list, button view , call click?

i have suggestions.

i don't think iterating , faking click idea. implement separate procedure "all" button takes data backing adapter (in case it's array, right) , executes logic download 1 one or (much more preferrable imo) in batch, example send file ids list server , make server return zip.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -