I have written code which saves a user’s answers as well as a recorded audio piece (.3gp) to their SDcard, which then gets uploaded to a server. I know this probably is not the best way to go about this because a user may not have an SDcard. I know I can put code in to check to see if the user has an SDcard but that wont help much. Is there an alternative way to store info or files on a device which doesnt have an sdcard or better way to go about this? Thanks for the help!
EDIT: Code below was working solution
try{
File pathCacheDir = getCacheDir();
System.out.println("Got the Cache directory");
File newCacheFile = new File(pathCacheDir, cacheFileName);
newCacheFile.createNewFile();
FileOutputStream stream = new FileOutputStream (newCacheFile.getAbsolutePath());
You should be able to create a database for your app and store the file in a blob.