Updating a TextView from a background thread causes:

  1. OutOfMemoryError
  2. NetworkOnMainThreadException
  3. CalledFromWrongThreadException
  4. ActivityNotFoundException
Answer

C) CalledFromWrongThreadException

Only the UI thread may touch views.

Computer Science MCQ · More Threading and Publishing Android Applications MCQs · Practise