English subtitles

← Why AsyncTask is Not Optimal - Developing Android Apps

Get Embed Code
10 Languages

Showing Revision 14 created 05/25/2016 by Udacity Robot.

  1. Well, the transfer isn't happening on the UI thread, but
  2. that's not a bad thing. In fact, it's good that it's
  3. not happening on the UI thread. So that's not a problem
  4. either. Data transfers are an integral part of most modern smartphone
  5. apps, so that's not a problem. The real problem is that
  6. the transfer is happening on a thread whose lifetime is tied
  7. explicitly to a UI component, in this case an activity. So
  8. if the activity is terminated by something like a screen rotation,
  9. the transfer will also be terminated.