[jira] [Commented] (CB-10950) Phonegap app in the background when capture and select image for gallery app stop/restart.

2018-01-10 Thread Reed Richards (JIRA)

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

Reed Richards commented on CB-10950:


[~riknoll] [~ignaciotoptier] could confirm this, onResume is never throw when 
App restart after restart having been put in the background

cordova-plugin-camera@3.0.0
cordova-android@6.4.0

tested on Android 8.1

> 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: cordova-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.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-10950) Phonegap app in the background when capture and select image for gallery app stop/restart.

2016-04-12 Thread ignacio Chiazzo (JIRA)

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

ignacio Chiazzo  commented on CB-10950:
---


[~riknoll] it didnĀ“t work, when the app is killed by the SO, the app will never 
go to the action onResume,  this action is only executed when the app is on 
pause and the SO didn't kill the app (take a look at 
http://developer.android.com/reference/android/app/Activity.html). 
Theoretically when the app is killed, and the so want to restore the activity, 
the onCreate is executed and not the onResume. I tried using the onCreate 
function but it didn't work. Any of you found a solution to this problem, and 
want to share a example? 

> 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: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-10950) Phonegap app in the background when capture and select image for gallery app stop/restart.

2016-04-08 Thread Richard B Knoll (JIRA)

[ 
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: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-10950) Phonegap app in the background when capture and select image for gallery app stop/restart.

2016-04-08 Thread ignacio (JIRA)

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

ignacio commented on CB-10950:
--

I had the same problem and I tried with the code that android provided for this 
kind of scenario (low memory) and although the problem occurred less times that 
before,  I got the same problem, when the OS was running out of memory, it 
killed the app. [~riknoll]

> 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: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-10950) Phonegap app in the background when capture and select image for gallery app stop/restart.

2016-03-25 Thread Richard B Knoll (JIRA)

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

Richard B Knoll commented on CB-10950:
--

Thanks for filing an issue! This is a known problem that sometimes happens in 
low memory conditions. The Android OS will sometimes kill applications in the 
background to free up memory. Please refer to [the Android Lifecycle 
Guide|http://cordova.apache.org/docs/en/latest/guide/platforms/android/index.html#lifecycle-guide]
 for a full explanation of the problem and how to test/handle the low memory 
scenario in your app. It requires that you use the latest releases of 
cordova-android and cordova-plugin-camera.

I hope that helps! Please resolve this issue if that document I linked takes 
care of the problem.

> 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: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-10950) Phonegap app in the background when capture and select image for gallery app stop/restart.

2016-03-24 Thread Lokesh Patel (JIRA)

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

Lokesh Patel commented on CB-10950:
---

Hi,

I have applied functionality to the Sencha touch framework and faced the 
problem.
Bellow code for both functionality.

function getCameraPicture(){
navigator.camera.getPicture(getPicture_Success, null, {
quality: 20,
destinationType: Camera.DestinationType.FILE_URL
});
}
 
  function getLibPicture(){
 navigator.camera.getPicture(getPicture_Success, null, {
 quality: 20,
  destinationType: navigator.camera.DestinationType.FILE_URL,
  sourceType: navigator.camera.PictureSourceType.SAVEDPHOTOALBUM
  });
}

Also,  please suggest me can " Android Garbage Collector to kill background 
phonegap applications. "  ?

Thanks,
Lokesh Patel

> 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: Android
>Affects Versions: 5.0.1
>Reporter: Lokesh Patel
>
> 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: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-10950) Phonegap app in the background when capture and select image for gallery app stop/restart.

2016-03-24 Thread jcesarmobile (JIRA)

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

jcesarmobile commented on CB-10950:
---

Can you provide the code you use?

> 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: Android
>Affects Versions: 5.0.1
>Reporter: Lokesh Patel
>
> 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: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org