// 把tab.xml文件写到手机内存里面
FileOutputStream fos = ctx.openFileOutput("tab.xml",
Context.MODE_PRIVATE);
String tabstr = "";
byte[] bt = tabstr.getBytes();
fos.write(bt);
fos.flush();
fos.close();
// 从手机里面读取该文件
FileInputStream fis = ctx.openFileInput("tab.xml");
int len = fis.available();
byte convalue[] = new byte[len];
fis.read(convalue);
fis.close();
String tabValue = new String(convalue, "utf-8"); // tab.xml的值
FileOutputStream fos = ctx.openFileOutput("tab.xml",
Context.MODE_PRIVATE);
String tabstr = "";
byte[] bt = tabstr.getBytes();
fos.write(bt);
fos.flush();
fos.close();
// 从手机里面读取该文件
FileInputStream fis = ctx.openFileInput("tab.xml");
int len = fis.available();
byte convalue[] = new byte[len];
fis.read(convalue);
fis.close();
String tabValue = new String(convalue, "utf-8"); // tab.xml的值