AsyncTask用來做background operation,以避免block UI thread造成Application not respond (ANR)
適合做Short operation (Life cycle和Activity綁一起,不會像service在activity destroyed後還在background做)
AsyncTask用來做background operation,以避免block UI thread造成Application not respond (ANR)
適合做Short operation (Life cycle和Activity綁一起,不會像service在activity destroyed後還在background做)