Which call saves preference changes asynchronously?

  1. flush()
  2. save()
  3. commit()
  4. apply()
Answer

D) apply()

apply() writes in the background; commit() is synchronous and returns a Boolean.

Computer Science MCQ · More UI Events, Views, Preferences and Data Storage MCQs · Practise