On Jul 21, 2013 6:59 PM, "Anis KADRI" <anis.ka...@gmail.com> wrote: > > On Sun, Jul 21, 2013 at 6:48 PM, Joe Bowser <bows...@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.