I know that SharedPreferences has putString(), putFloat(), putLong(), putInt() and putBoolean(). But I need
putString()
putFloat()
putLong()
putInt()
putBoolean()
If you object is simple POJO you can convert object to JSON string and save it in shared preferences with putString().