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 01:48:59 GMT
Because there are things CordovaActivity does that you may not want, 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.

Also, we haven't fully tested the use case where one extends the
CordovaActivity, so there's that as well.
On Jul 21, 2013 6:26 PM, "Anis KADRI" <anis.kadri@gmail.com> wrote:

> I would love to know that too.
>
>
> On Sun, Jul 21, 2013 at 6:05 PM, Smith, Peter <peters@fast.au.fujitsu.com
> >wrote:
>
> > Hi,
> >
> >
> >
> > I already asked this on PG Forum but got no replies. For more details
> > see: https://groups.google.com/forum/#!topic/phonegap/KW0QC4P9P0Y
> >
> >
> >
> > --
> >
> >
> >
> > There is a Cordova Guide "Embedding Cordova WebView on Android"
> >
> > http://cordova.apache.org/docs/en/2.9.0/guide_cordova-webview_android.md
> > .html#Embedding%20Cordova%20WebView%20on%20Android
> >
> >
> >
> > Can someone please explain why the guide advises to write the class with
> > the form:
> >
> > public class CordovaViewTestActivity extends Activity implements
> > CordovaInterface {
> >
> >
> >
> > instead of:
> >
> > public class CordovaViewTestActivity extends CordovaActivity {
> >
> >
> >
> > Our problem is that another team in our group has followed this
> > cut/paste advice but then (since they've failed to maintain their code
> > to keep up-to-date with changes to CordovaActivity over different
> > versions) they have come to grief with unexpected behaviours. I thought
> > if they had just extended from CordovaActivity in the first place they
> > could have avoided such hassles, but OTOH they thought they were doing
> > the right thing by following the guide.
> >
> >
> >
> > --
> >
> >
> >
> > Apologies if this is the wrong forum to ask this.
> >
> >
> >
> > Thanks,
> >
> > Peter
> >
> >
>

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