try
{
BufferedReader reader = new BufferedReader(new FileReader("/sdcard/datafile.dat"));
String txt = "";
textname=(EditText)getActivity().findViewById(R.id.editText1);
textphone=(EditText)getActivity().findViewById(R.id.editText2);
if ( (txt = reader.readLine()) != null){
Log.e("", txt );
textname.setText(txt);
}
if ( (txt = reader.readLine()) != null)
Log.e("", txt );
textphone.setText(txt);
reader.close();
}catch(IOException e) {
Log.e("", "Could not read file " + e.getMessage());
}
setText하는 부분 2군데서 모두 에러가 나요...잘못된 점을 지적해주시길..