Remove "file://"
from path...
FileInputStream file = new FileInputStream(new File(Environment.getExternalStorageDirectory().getPath()
+ "/RegInfo/output/data.xml"));
Only using Environment.getExternalStorageDirectory().getPath()
, you will get the SDCard
directory. Theres no need to add "file://"
before path.