Source: https://nishanth-fern-test.docs-staging.pageloop.ai/mobile/create-application-class

# Create Application Class

The Application class in Android is the base class within an Android app that contains all other components such as activities and services.

While [integrating Whatfix Mobile SDK with your Android app](/mobile/integrate-whatfix-mobile-sdk-with-android), you need to start the Whatfix Mobile SDK in your Application class inside the onCreate() function.

If you haven't created the Application class, use the following steps to create it:

1. Open your main AndroidManifest.xml.
2. Add android:name=".NewApplicationClass" to your \<application> tag.

```plaintext
<manifest xmlns:android="<http://schemas.android.com/apk/res/android>"
    package="is.leap.android.test">
   <application
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:name=".NewApplicationClass">
        ...
    </application>
</manifest>
```

1. Hover your cursor over android:name=".NewApplicationClass" or press Alt + Enter or Option + Enter and select **Create class** NewApplicationClass.

**Java**

```plaintext
import android.app.Application;

public class NewApplicationClass extends Application {
   @Override
   public void onCreate() {
      super.onCreate();
      // TODO: Start Leap SDK here
   }
}
```

**Kotlin**

```plaintext
import android.app.Application

class NewApplicationClass : Application() {
   override fun onCreate() {
      super.onCreate()
      // TODO: Add Leap SDK initialization here
   }
}
```
