1
即時通訊使用MultiSelectListPreference和值保存在陣列上..閱讀數組共享首選
如何讀取?
SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(this);
Set<String> a = pref.getStringSet("tabs", null);
for (int i = 0; i < a.size(); i++) {
Log.d("salida", a[i]);
}
我得到這個錯誤:類型的表達式必須是一個數組類型,但它解決了設置
方括號表示法只適用於數組 – nicopico 2013-03-09 18:21:56
行的錯誤? – madlymad 2013-03-09 18:52:32