NEWDolby Interactivity APIs are now the Dolby.io Communications APIs Learn More >
X

Android Mock Interview App Example

An Android Interview Practice App to demonstrate voice and video chat between two participants while querying REST APIs to find available conferences.

Overview

This project demonstrates an application to facilitate one-on-one practice interviews built with the Dolby.io Communications Android SDK. The server-side components query REST APIs to identify available conferences to join and generate authentication tokens. Once in a conference you have expected voice and video functionality of a basic conference call.

Features Tech Stack
  • Join/leave a conference
  • Mute/unmute audio and video
  • Toggle on/off self-view video
  • REST API to generate authentication tokens
  • REST API query available conferences
  • Android
  • Kotlin
  • Heroku

Key concepts

Using Kotlin with Android SDK

If you are looking for Kotlin sample code for working with the Android SDK this project may be a good place to start. The code base uses Kotlin and pulls the Android SDK library in as a dependency.

Application architecture

This project demonstrates a full application architecture you might consider for your own implementation. The server components work with Dolby.io using REST APIs to authenticate and identify available conferences. The mobile application includes activities and user-interface fragments to handle login, conference selection to create or join, and the video conference itself.

Heroku

For many production applications you will need to implement a server component. This allows you to hide sensitive information such as your credentials (consumer key & secret). It also gives you a place to build additional functionality that allows coordination across clients.

This project does not require Heroku, but the documentation provides instructions for how to configure and deploy the server-side functionality to the Heroku platform as an example.

Authentication tokens

This application exposes an endpoint at /token/access which will return a client token. This is an abstraction on top of the Authentication REST API so that client code installed on mobile clients do not require any secrets that can be exploited.

Conference availability

This application creates an endpoint /conference/exists and /conference/list to wrap some behaviors around the underlying Monitor REST API. This allows clients to coordinate via the server to find open conferences to join or get paired up with a partner.


Did this page help you?