SharedPreferences Value Continues to Return as Zero - Cannot Retrieve Value of 'Data' String
- 阅读更多 关于 SharedPreferences Value Continues to Return as Zero - Cannot Retrieve Value of 'Data' String
问题 I'm attempting to pull the byteswapped MDN value from SharedPreferences but it continues to return the value of zero - when it should return the byteswapped MDN instead. I'm saving it using the following format: editor.putString(new String("data"), Integer.toString(0)); and getting it using the following format: String info = String.format("USI%sCN%s,WN%s", tag + status + tag + settings.getString("data", Integer.toString(0)) + tag + DToDevice + tag, mobileStr, totalStr + settings.getString(