I used the following code to store the file on Internal Storage in Application run on a device.
private void writeToFile(String s){ try { // catches IOExcep
On further research, I found that the files stored on the internal storage can be seen in file explorer only while using the emulator. So looks like I have to resort to external storage.