[ 
https://issues.apache.org/jira/browse/CB-10950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15232615#comment-15232615
 ] 

Richard B Knoll commented on CB-10950:
--------------------------------------

[~ignaciotoptier] Unfortunately, there is no way to stop the OS from killing 
your app in the background on devices with low memory. Even in memory efficient 
apps it can still happen sometimes.  More info can be found in the [Android 
activity docs|http://developer.android.com/reference/android/app/Activity.html].

The best you can do from a Cordova app is to handle the lifecycle and restore 
your app's state when it occurs. The code in the guide I linked is meant to 
provide an example of how to do that. Please let me know if you find that guide 
is helpful or not and if you have any suggestions for improvements!

> Phonegap app in the background when capture and select image for gallery app 
> stop/restart. 
> -------------------------------------------------------------------------------------------
>
>                 Key: CB-10950
>                 URL: https://issues.apache.org/jira/browse/CB-10950
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera
>    Affects Versions: 5.0.1
>            Reporter: Lokesh Patel
>              Labels: android, triaged, wfc
>
> Hi,
> In android application when the user tries for capturing images and select 
> image from gallery app stop/restart.
> I found below details after search lots of google and forums:
> " The Phonegap (Cordova) Camera Plugin calls the native camera and this makes 
> Android Garbage Collector to kill background applications."
> Thanks,
> Lokesh Patel



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to