Memory problems with Phonegap when using the camera feature

  • 2020-06-19 11:44:17
  • OfStack

Android crashes when using phonegap's camera feature. The reason for this may be that your phone isn't running out of memory, but it's actually not phonegap, which is a common problem with the native android apps.

This is a problem because when the photo is triggered, android activity (equivalent to the current window) goes into the background (OnStop state) and waits for the photo to be taken, so the garbage collector executes and kills activity to free up memory. When the photo is done, your activity is dead, which is why app restarts.

Recommendation: Replace the cramer plug-in and use a custom plug-in to avoid starting the garbage collection es16EN-ES17en-ES18en.

This is the end of this article, I hope you enjoy it


Related articles: