This project is a demo app showcasing how to embed Whereby in a WebView within a native Android application using either an Activity or Fragment. It demonstrates proper handling of media permissions, file downloads, and uploads. More information is available in the Whereby documentation.
| Initial screen | Fragment | Activity 1 | Activity 2 |
|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
- Android Studio (latest stable version)
- Android SDK 24 or higher
- A Whereby room URL or a web app that embeds Whereby
- Load any Whereby room URL or app that embeds Whereby.
- Full handling of runtime permissions for:
- Microphone access
- Camera access
- Handle file uploads and downloads.
- Clone this repository:
git clone https://github.com/whereby/android-webview-demo.git cd android-webview-demo - Open the project in Android Studio.
- Let Gradle sync and resolve dependencies.
- Set the Whereby room URL in the
MainActivity. - Build and run the app on an emulator or a physical device.
- Launch the app.
- Enter a valid URL in the input field.
- Tap either the "Activity" or "Fragment" button.
Declare these permissions in AndroidManifest.xml:
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
If loading a Whereby meeting room URL, you can combine URL parameters to customize the user experience. We recommend using skipMediaPermissionPrompt.
When embedded in a WebView, the user may be disconnected from the room if the app is moved to the background.
This project is licensed under the MIT License. See LICENSE for details.



