經安全檢測,此網站為安全網站,請放心前往原始網址!

getInt from sharedPreferences android - Stack Overflow

2012年10月22日 - 1 is different from true. 1 is an int while true is a boolean. I guess you should do: if (getPrefs.getInt("sports", 1)==1). or if(getPrefs.getInt("sports", 1)==2).

stackoverflow.com

網址安全性掃描由 google 提供