I'm developing a phonegap application that uses the camera. In low memory situations, when the camera is launched, my application is killed by the system, sometimes without calling onDestroy() method (now I know that only onPause() is guaranteed).
I can override the onPause() method (in javascript or java) to store the app status, and recover it when the app is restarted. The problem is that the picture file uri is lost, and my application can't obtain it.
Do you know any way in Android for recalling to my callback function when the camera returns the picture uri, and my application has been killed? Any workaround?
I think that this problem is common to all android developments that uses startActivityForResult(), but I haven't found any solution.
Thanks in advance ;-)