 |
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 |
 |