I have written a code to record audio and save it to below file location.
private String getFilename() { String
In Emulator, to view this file click on Settings>Storage>Other>Android>data>com.companyname.textapp>file>Download. Here, textapp is the name of the app you are working on.