//读取到sd卡xml并获得字节流
File path = new File(Environment.getExternalStorageDirectory(),"backupsms.xml");
//FileInputStream fis = new FileInputStream(path);
InputStream in=new FileInputStream(path);
byte[] buf=new byte[1024];//创建字节数组存放读取到的数据
int len=in.read(buf);
System.out.println(new String(buf,0,len));