incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Bowser <>
Subject Re: [Android] Re-introducing getContext and deprecating
Date Tue, 26 Jun 2012 21:10:14 GMT
Yeah, Simon added it earlier, but then I realized that plugins are
probably already using this method, which is why I added the
"Deprecated December 2012" message on it.

As far as pre-1.8 versions of PhoneGap, where we provided a context
(in reality a PhoneGapActivity, which extended Activity, which extends
Context), I don't know of a good way to deprecate this without making
CordovaWebView completely unusable.  The thing with these methods is
that we decided to remove these methods before the deprecation policy,
and I don't want to see them back in there for another six months.

This is total Java Language Fail!


On Tue, Jun 26, 2012 at 12:14 PM, Brian LeRoux <> wrote:
> thx mang, thats a good idea for the moment.
> On Tue, Jun 26, 2012 at 11:27 AM, Joe Bowser <> wrote:
>> BTW: I added it back with this commit:
>> On Tue, Jun 26, 2012 at 11:21 AM, Joe Bowser <> wrote:
>>> Hey
>>> 1.9 is close to being released, but currently plugins that use
>>> ctx.getContext() are broken.  Since we changed how a CordovaInterface
>>> works on Android in 1.9, I'm wondering if we should add the
>>> addContext() method back on the Interface with a deprecation warning
>>> or just tell plugin authors that if they aren't active on the mailing
>>> list that their plugins are going to break.  Personally, I don't want
>>> to have more methods on the CordovaInterface, because it makes
>>> CordovaWebView harder to use, but this will break plugins across the
>>> board.
>>> Thoughts?
>>> Joe

View raw message