Return to Video

Disadvantages Solution - Developing Android Apps

  • 0:00 - 0:04
    Early versions of Android
    don't have cursor loaders.
  • 0:04 - 0:08
    Instead, the cursor adapter requeried
    the database on the main UI thread,
  • 0:08 - 0:11
    when data from a content
    provider changed.
  • 0:11 - 0:14
    This caused frame rate
    drops in many applications.
  • 0:14 - 0:16
    The first answer is a definite yes.
  • 0:18 - 0:21
    We noted how things like async
    tasks are bound to the UI.
  • 0:21 - 0:24
    So something as little
    as an orientation change
  • 0:24 - 0:27
    could cause the query to complete
    after the activity stops.
  • 0:27 - 0:29
    So that's another definite yes.
  • 0:29 - 0:33
    The cursor being tied to the activity
    also means that the data would
  • 0:33 - 0:37
    generally have to be requeried
    when the screen rotates, so
  • 0:38 - 0:40
    there are definitely disadvantages.
タイトル:
Disadvantages Solution - Developing Android Apps
概説:

more » « less
Video Language:
English
Team:
Udacity
プロジェクト:
UD853 - Developing Android Apps
Duration:
0:41

English subtitles

改訂 Compare revisions