public
static
void
doWriteFile(String filename, String data)
{
File
file = new
File(Environment.getExternalStorageDirectory().toString(),filename);
FileOutputStream
fo = null;
try
{
fo
= new
FileOutputStream(file);
}
catch
(FileNotFoundException e) {
//
TODO
Auto-generated catch block
e.printStackTrace();
}
try
{
fo.write(data.getBytes());
fo.close();
}
catch
(IOException e) {
//
TODO
Auto-generated catch block
e.printStackTrace();
}
}