We have a view that downloads videos and saves to the persistent file system. The downloading and saving is working fine, but when we navigate off of the page, we run into an out of memory exception (below), which is showing up on Android, but not iOS.
E/AndroidRuntime: FATAL EXCEPTION: pool-2-thread-1
Process: com.whiteboardit.liaison, PID: 11421
java.lang.OutOfMemoryError: Failed to allocate a 93469680 byte allocation with 16777216 free bytes and 74MB until OOM
at java.lang.StringFactory.newStringFromString(Native Method)
at org.json.JSONTokener.nextString(JSONTokener.java:208)
at org.json.JSONTokener.nextValue(JSONTokener.java:107)
at org.json.JSONTokener.readArray(JSONTokener.java:429)
at org.json.JSONTokener.nextValue(JSONTokener.java:103)
at org.json.JSONArray.(JSONArray.java:92)
at org.json.JSONArray.(JSONArray.java:108)
at org.apache.cordova.file.FileUtils$25.run(FileUtils.java:662)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)