Which data type can NOT be stored directly in SharedPreferences?

  1. A Bitmap image
  2. Set of Strings
  3. Float
  4. Boolean
Answer

A) A Bitmap image

Only primitives, Strings and String sets are supported.

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