我正在对我们的安卓手机进行基准测试。基准测试包括GLBenchmark、Linpack、Quadrant和Caffeine。如何将这些基准测试的结果存储到文件中。有什么办法吗?
谢谢你,斯瓦米
发布于 2013-12-24 14:28:36
您可以使用共享首选项:
SharedPreferences cartPref = getSharedPreferences("FILE_NAME", 0);//mode 0 means private
SharedPreferences.Editor editor = cartPref.edit();//create editor
editor.putInt("key_name", value);
editor.commit();//save the data
//to get the data
cartPref.getInt("key", -1); //-1 is the default value returned if nothing with the key "key" is foundhttps://stackoverflow.com/questions/20755484
复制相似问题