Tag: File system

Code snippet to save/fetch data from file system

To save data from file system you need to add write access storage system permission in application’s manifest. You can write data in internal as well as on external sd card. Code to write data on disc [sourcecode language=”java”] protected static void saveDataOnDisk(String data) { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); try { ObjectOutput objectOutput =

Continue Reading…