Saving file to phone in stead of SD-card
- by Galip
Hi guys,
In my app I save an XML file to the users SD-card by doing File newxmlfile = new File(Environment.getExternalStorageDirectory() + "/Message.xml");
But not all users have SD-cards in their phone and therefore my app is likely to crash.
How must I change my File creating method in order to save the file to the phone's memory instead of the SD-card?
Also, how must I change the loading of the file? (currently: new InputSource(new FileInputStream(Environment.getExternalStorageDirectory() + "/Message.xml")))