I have a sort of numeric keypad and a list. When the user chooses the keypad, I call a function to sort the list. The user can press the button to show the list at any time.
But that list can be pretty large, 500+, so I was thinking about doing the sorting no longer on the UI thread.
What is the best way to do this ?
Should I use a regular thread, asynctask?
My only worry is that the user can also click the button to show the list while the asynctask is not finished yet. How should I handle that ?
Thx