This question is locked. New answers and comments are not allowed.
Hi, im comfronting a very common trouble in cordova.
The camera plugin makes some devices crash due to the amount of memory it uses processing the picture and i tried everything:
-lowering picture quality
-lowering picture resolution
-using FILE_URI, instead of Base64
- <uses-sdk android:minSdkVersion="7" />
And still, SOMETIMES my app restarts after trying to save the picture, normally if the app restarts and i try to take the picture again then it works, so that makes me thing its the memory that got flushed by garbage collector and the second time has space.
Also, im using devices with low ram memory, (128), but i cant change that for the moment.
I want to make a plugin i can use to call the native java method System.gc(); just before processing the picture, so that way probably the app wont crash.
I also found this plugin:
https://code.google.com/p/foreground-camera-plugin/
But this is supposed to work with cordova 2.4.0 and im on 3.0 and btw i dont know how to add that plugin to appBuilder...
Can anyone tell me wich is the best sollution to solve this please? I dont want to go to phonegap cause i find appbuilder more efficient but i really dont know how to solve this.
THANKS in advance.
The camera plugin makes some devices crash due to the amount of memory it uses processing the picture and i tried everything:
-lowering picture quality
-lowering picture resolution
-using FILE_URI, instead of Base64
- <uses-sdk android:minSdkVersion="7" />
And still, SOMETIMES my app restarts after trying to save the picture, normally if the app restarts and i try to take the picture again then it works, so that makes me thing its the memory that got flushed by garbage collector and the second time has space.
Also, im using devices with low ram memory, (128), but i cant change that for the moment.
I want to make a plugin i can use to call the native java method System.gc(); just before processing the picture, so that way probably the app wont crash.
I also found this plugin:
https://code.google.com/p/foreground-camera-plugin/
But this is supposed to work with cordova 2.4.0 and im on 3.0 and btw i dont know how to add that plugin to appBuilder...
Can anyone tell me wich is the best sollution to solve this please? I dont want to go to phonegap cause i find appbuilder more efficient but i really dont know how to solve this.
THANKS in advance.