This guide shows you how to add the Virtual Stadium Data SDK to your project and initialize it before using any SDK services.
Ready to start integrating? After installation, continue with the Getting Started Guide.
Initialize the SDK once at app startup before you create channels, log in users, or collect SDK state.
Understand the available SDK services and what each one does.
Follow the step-by-step integration guide.
Learn how login and user state management work.
Add the SDK dependency to your app module's build.gradle:
dependencies {
implementation("com.sportradar.virtualstadium.datasdk:vs-data-sdk-android:<data-sdk-version>")
}Initialize the SDK in your Application class:
class VirtualStadiumApp : Application() {
override fun onCreate() {
super.onCreate()
VirtualStadiumSDK.init(applicationContext)
}
}Register the application in AndroidManifest.xml:
<application
android:name=".VirtualStadiumApp"
android:label="@string/app_name">
<!-- Your activities -->
</application>