ODO值,其中ODO值为某个实时的can数据,DATE即为当前时间,点击右端的更新按钮就需要将这两个实时值存储在本地用,并显示:
存
/*
* 存
*/
write("of",time(),ftv4,getActivity...());
write("ff",time(),ftv4,getActivity());
write("af",time(),ftv4,getActivity());
write("eo",time(),...ftv4,getActivity());
...
private void write(String s,String time,int odo, Context context){...().getSharedPreferences("eo", Context.MODE_PRIVATE);
SharedPreferences preferences_of = getActivity...().getSharedPreferences("of", Context.MODE_PRIVATE);
SharedPreferences preferences_ff = getActivity