In my app I save an XML file to the user\'s SD card by doing File newxmlfile = new File(Environment.getExternalStorageDirectory() + \"/Message.xml\");
File newxmlfile = new File(Environment.getExternalStorageDirectory() + \"/Message.xml\");
B
Got it by changing
Environment.getExternalStorageDirectory() + "/Message.xml"
into
Environment.getDataDirectory() + "/data/com.companyname.appname/files/Message.xml"