Install Joyfill SDK
Creating or opening your project If you already have an Android project, open it in Android Studio. Otherwise, create a new one by following the steps below.- Open Android Studio, select File > New > New Project.
- Choose the Empty Activity (Jetpack Compose) template.
- Set your app name (for example, Joyfill Demo), desired save location, language (Kotlin), and minimum SDK (21+ recommended).
- Click Finish to create the project.
app/build.gradle.kts file, add the Joyfill dependency:
versions for the latest version.
⚠️ See migration notes in migration-guide if you are upgrading from v1
Sync your project
After adding the dependency, sync your project by clicking the Sync Now button that appears at the top of the file, or by selecting File > Sync Project with Gradle Files.
Load your first form
Download the sample JSON Download the sample JSON to get started without any API calls:first-form.json
This JSON file contains a simple form with:
- A text field for “Full Name”
- A number field for “Age”
- A multi-select field for “Do you like football?”
Provide JSON
After downloadingfirst-form.json, you have two ways to use it in your app:
Method 1: Copy JSON content directly
Open the downloaded file, copy its entire content, and paste it into your code:
- Place first-form.json in your
app/src/main/assets/folder - Load it in your code:
Listen for form changes
Track user interactions and form modifications using event callbacks: Basic change tracking💡 Learn more: For detailed information about all available events and their parameters, see the Form Events Documentation.