Is it possible to add an array or object to SharedPreferences on Android - Stack Overflow

Is it possible to add an array or object to SharedPreferences on Android - Stack Overflow

瀏覽:1419
日期:2025-04-16
SAVE ARRAY public boolean saveArray(String[] array, String arrayName, Context mContext) { SharedPreferences prefs = mContext.getSharedPreferences("preferencename", 0); SharedPreferences.Editor editor = prefs.edit(); editor.putInt(arrayName ......看更多