different alternatives to the Android AsyncTask code example
Example: asynctask android alternative
new Thread(new Runnable() {
@Override
public void run() {
//Do stuff
runOnUiThread(new Runnable() {
@Override
public void run() {
//UI updates
}
});
}
}).start();