//请用户使用以下命令保存一些整数值 //共享的首选项如何显示新旧总和 //用户的价值?
sharedPreferences = this.getActivity().getSharedPreferences("Home report", MODE_PRIVATE);
String Hours = sharedPreferences.getString("Hours",DEFAULT);
String Minutes = sharedPreferences.getString("Minutes",DEFAULT);
String Placements = sharedPreferences.getString("Placements",DEFAULT);
String Videos = sharedPreferences.getString("Videos",DEFAULT);
String Visits = sharedPreferences.getString("Visits",DEFAULT);
String Studies = sharedPreferences.getString("Studies",DEFAULT);
if (Hours.equals(DEFAULT) || Minutes.equals(DEFAULT) || Placements.equals(DEFAULT) || Videos.equals(DEFAULT) ||
Visits.equals(DEFAULT) || Studies.equals(DEFAULT)){
}else {
hoursValue.setText(Hours);
minutesvalue.setText(Minutes);
placementsValue.setText(Placements);
videosValue.setText(Videos);
visitsValue.setText(Visits);
studiesValue.setText(Studies);
}