Updating a TextView from a background thread causes:
- OutOfMemoryError
- NetworkOnMainThreadException
- CalledFromWrongThreadException
- ActivityNotFoundException
Answer
C) CalledFromWrongThreadException
Only the UI thread may touch views.
Computer Science MCQ · More Threading and Publishing Android Applications MCQs · Practise