[
https://issues.apache.org/jira/browse/CB-8804?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14594156#comment-14594156
]
ASF GitHub Bot commented on CB-8804:
------------------------------------
Github user dpolivy commented on a diff in the pull request:
https://github.com/apache/cordova-plugin-camera/pull/97#discussion_r32879107
--- Diff: README.md ---
@@ -456,3 +457,36 @@ after calling `camera.getPicture`. Applies only when
the value of
function onFail(message) {
alert('Failed because: ' + message);
}
+
+## navigator.camera.checkForSavedResult
+
+call this method in onDeviceReady to see if there is a result present from
a previous call to getPicture.
+add the same options you used when calling getPicture, or leave it out to
pass default options
+
+ navigator.camera.checkForSavedResult( successCallback, errorCallback,
options );
+
+### Description
+
+Tries to get the intermediate image file that is kept in temporary storage
after calling `camera.getPicture`.
+Applies when the operating system decides to kill our MainActivity while
getting an Image.
+Once our MainActivity restarts you should call this method to see if a
result is available.
+
+If you want to use the same options you used when calling getPicture you
have to make sure you store the options first,
+this way you can use your saved options to call checkForSavedResult, so
the picture get's handled the same as it would have when Android hadn't killed
our MainActivity
--- End diff --
No apostrophe in "gets"
> https://github.com/apache/cordova-plugin-camera#android-quirks
> --------------------------------------------------------------
>
> Key: CB-8804
> URL: https://issues.apache.org/jira/browse/CB-8804
> Project: Apache Cordova
> Issue Type: Improvement
> Components: Plugin Camera
> Environment: Android
> Reporter: Serge Huijben
>
> Android Quirks
> Android uses intents to launch the camera activity on the device to capture
> images, and on phones with low memory, the Cordova activity may be killed. In
> this scenario, the image may not appear when the Cordova activity is restored.
> It can be solved bij implementing this PR:
> https://github.com/apache/cordova-plugin-camera/pull/97
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]