cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard B Knoll (JIRA)" <>
Subject [jira] [Commented] (CB-7856) app restarts when using camera android 4.4.4
Date Fri, 09 Oct 2015 18:25:05 GMT


Richard B Knoll commented on CB-7856:

This is a documented issue on the Android platform. The Android implementation of the camera
plugin starts a new Activity when you pick a photo. Meanwhile, the Activity holding your application
is put in the background while it waits for the photo picking Activity to return its result.
In Android, when a new Activity starts there is always the possibility that the other Activity
it replaces will get killed by the OS in the background if the device is running low on memory.
What you are likely seeing is your Activity getting killed and restarting when the other Activity
returns its result (it only happens sometimes because it is dependent on the device's available
memory). Normally in Android you address this by using the [Activity's lifecycle methods|]
to save and restore application state. Unfortunately, this is tougher to do using Cordova.
There is some discussion happening on [this pull request|]
as to how this case should be handled.

> app restarts when using camera android 4.4.4
> --------------------------------------------
>                 Key: CB-7856
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera
>    Affects Versions: 3.5.0
>            Reporter: clement bidon
> I have this issue on my moto G with android 4.4.4:
> I use PG build 3.5 
> with plugin v0.3.2
> I call the to select a picture on my device, then I have
the list of the pictures available in my galery, then when I select it, the app sometimes
restart (most of the time it restarts!)
> no pb with the same code on the iphone or my old samsung galaxy with android 2.3.6

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message