80,349
社区成员
发帖
与我相关
我的任务
分享
private void saveSetResult(int pos){
String filename = "system/media/bootlogo/logo_pos_record";
Log.d("BootAnimation", "write:"+Integer.toString(pos+1));
try {
RandomAccessFile out = new RandomAccessFile(filename, "rw");
out.seek(0);
out.writeBytes(Integer.toString(pos+1));
out.close();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
private void saveSetResult(int pos){
String filename = "system/media/bootlogo/logo_pos_record";
Log.d("BootAnimation", "write:"+Integer.toString(pos+1));
try {
RandomAccessFile out = new RandomAccessFile(filename, "rw");
out.seek(0);
out.writeBytes(Integer.toString(pos+1));
out.getFD().sync();
out.close();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}