cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Bowser <bows...@gmail.com>
Subject Re: Embedding Cordova WebView on Android
Date Mon, 22 Jul 2013 02:11:15 GMT
On Jul 21, 2013 6:59 PM, "Anis KADRI" <anis.kadri@gmail.com> wrote:
>
> On Sun, Jul 21, 2013 at 6:48 PM, Joe Bowser <bowserj@gmail.com> wrote:
>
> > Because there are things CordovaActivity does that you may not want,
>
>
> Such as ?

Initializing a WebView, creating layouts in code, handling intents,
everything that CordovaActivity does for the user by default.

>
> > also
> > there is no such thing as dual inheritance in Java.
>
>
> > For example if you have a MapActivity you can implement a
CordovaInterface,
> > but not extend a CordovaActivity.
> >
>
> As far as I understand the multiple inheritance is somewhat solved by
> implementing multiple interfaces but that is not really the issue here.
>

It is, since CordovaWebView was created partly so it could be used as a
component inside of a MapActivity.

> Extending a class is easier for developers than implementing an interface
> because one can override methods instead of implementing them.
>
>

True, but you can't extend a MapActivity and a CordovaActivity at the same
time.

People have to extended CordovaActivity, but when I see that it still makes
me cringe given how huge CordovaActivity still is.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message