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! Joe On Tue, Jun 26, 2012 at 12:14 PM, Brian LeRoux <b...@brian.io> wrote: > thx mang, thats a good idea for the moment. > > On Tue, Jun 26, 2012 at 11:27 AM, Joe Bowser <bows...@gmail.com> wrote: >> BTW: I added it back with this commit: >> https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-android.git;a=commit;h=58298404094c81561cf4e01b7c4397638584961b >> >> On Tue, Jun 26, 2012 at 11:21 AM, Joe Bowser <bows...@gmail.com> 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