I need some help with threading in my app. Ive got an activity that has a listview. Each listview item has one button and one textview. I would like to have each button click run in its own thread and update the corrosponding textview control on its row.
Im a beginner android developer and would appreciate some input on this. Ive tried to implament an AsyncTask sub class, but cant figure out how to do it for each button and have it update the textview.
Thanks!
you have to call the new Instance of the same
AsyncTaskevery time you perform aclickon the item.view and position are part of constructor because you would like to update the item ,that is what view is for, and position is to do something unique based on position in your asyncTask.
In your asyncTask , you might have to something similar to what i have done below.
HTH.