cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Kinard <>
Subject Re: android app crashes, performing async tasks before loadUrl
Date Mon, 29 Sep 2014 21:26:03 GMT
The reason why Martin and I are asking about this is because it is causing a breaking change
to our product. Unless there is reason, we'd like to move that part from init() back to onCreate().

It looks like there is a matching change in bin/template/project/, so this may
be breaking for other Cordova users besides our project, even if it is just a one-liner.

This would be a good candidate for 3.6.4 of cordova-android.

On Sep 29, 2014, at 2:27 PM, Joe Bowser <> wrote:

> That's a very good question, why was this removed Andrew?
> On Mon, Sep 29, 2014 at 11:08 AM, Martin Gonzalez <
>> wrote:
>> Hi devs,
>> I'm getting some problems performing async tasks (android.os.AsyncTask)
>> over android 3.6.x master, using native code before performing loadUrl().
>> I've found out that onCreate it doesn't setup config and preferences
>> anymore, that code it was moved to init() method.
>> I'm just wondering, why this code was moved to init(), and removed from
>> onCreate()?
>> This is the commit and its subject, but there's no JIRA item related.
>> Un-deprecate CordovaActivity.init() - it's needed to tweak prefs in
>> onCreate, by Andrew Grieve
>> Thanks.
>> --
>> Regards,
>> Martin Gonzalez

View raw message