cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filip Maj <>
Subject Re: [Android] - State, Plugins and the Android Lifecycle
Date Wed, 07 Nov 2012 23:16:29 GMT
I would be in favor of using android's state objects as much as possible
and let the android os take over for restoring most of that shit. How that
plays with webview/webkit I guess is another question entirely.

On 11/7/12 2:53 PM, "Joe Bowser" <> wrote:

>I think that we really need to figure out what's going on in DroidGap.  I
>know that this isn't a sexy new feature like WebRTC or anything, but we
>need to figure this out.  Right now, we have the following problem:
>1. User uses a plugin that fires an intent and launches an external
>2. That activity takes up memory and closes DroidGap
>3. When we get back to DroidGap, we can't recover the state, and as such
>we can't get the camera
>Now, while this is primarily with Camera, this might be with other things
>as well (i.e. BarcodeScanner, Camera with Video) and we should really
>up our lifecycle issues instead of trying to bring all these inside.
>for the CordovaWebView people, we are going to have to figure out a way to
>handle this lifecycle but make it easy for them to deal with these
>I propose that we start working on an CordovaActivity feature that cleans
>out DroidGap and brings sanity to the world so that we can try to save and
>restore the instance states and hopefully make things a bit more robust.
>can't guarantee that we'll get everything, but I think this approach at
>very least will lead to cleaner code, and more tests.
>Any thoughts about the Android Lifecycle and the state of DroidGap?

View raw message