# Adding Application Class

We recommend using a global [Application](https://developer.android.com/reference/android/app/Application.html) class to initialize our SDK. If you don't have an Application class for your project, follow these steps:

* Create a class that extends `Application`.

Kotlin JAVA

```kotlin
        import android.app.Application
        class MainApplication : Application() {
            override fun onCreate() {
                super.onCreate()
                // initialize Rudder SDK here
            }
        }
```

```java
import android.app.Application;
public class MainApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        // initialize Rudder SDK here
    }
}
```

* Open `AndroidManifest.xml` file of your app and locate `<application>` tag.
* Add an attribute `android:name` and set it to your new application class.

```markup
<application
    android:name=".MainApplication"
    <!-- ... -->
</application>
```

## Contact Us

In case of any queries, you can always [contact us](mailto:%20docs@rudderstack.com), or feel free to open an issue on our [GitHub Issues](https://github.com/rudderlabs/rudder-sdk-android/issues) page if you come across any error or discrepancy.
