In this tutorial, what is the "class that extends DroidGap"

Viewed 2640

I just did the Cordova Hello, World tutorial and now I'm trying to add a splash screen. The tutorial says

In the onCreate method of the class that extends DroidGap, add the following two lines.

What is the class that extends DroidGap? How do I find it? What is this tutorial talking about?

2 Answers

The intro tutorial instructs you to change the superclass of your new main class to DroidGap instead of the default (Activity)—so you created and named the "class that extends DroidGap"; that's the reason they describe it this way. It's your project's intro Activity/main class.

DroidGap is basically used when we integrate PhoneGap in our Android Application. Instead of our Activity we have to extend our main class with DroidGap in order to work with Phonegap apps.

Hope this answers your question.

Related