Skip to contentSkip to navigationSkip to topbar
Rate this page:
On this page

Sync Android Quickstart


In this guide, we will get you up and running quickly with a sample application you can build on as you learn more about Sync.

Table Of Contents:


Gather account information

gather-account-information page anchor

The first thing we need to do is grab all the necessary information from our Twilio account. To set up our back-end for Sync, we will need four values from our account:

Config ValuesDescription
Service Instance SIDA service instance where all the data for our application is stored and scoped. Generate one using the console Sync Services tool.
Account SIDYour primary Twilio account identifier - find this on the main page of the Twilio console.
API KeyUsed to sign tokens. Generate one using the console API Keys tool.
API SecretUsed to sign tokens, together with the corresponding API Key.

A Sync application has two pieces - a client (our Android app) and a server. You can learn more about what the server app does by going through this guide. For now, let's just get a simple server running so we can use it to power our Android application.

Choose a download package for your server-side language of choice. If you're primarily a front-end developer and don't have a strong preference, Python, Node.js, or Ruby will probably get you up and running the fastest.

Follow the instructions in the README for each starter application to configure and run it on your machine, using the four values we created above:

Now that our server is set up, let's get the starter Android app up and running.


To get going quickly, there is a starter Android app. Download it now:

Configure and Run the Mobile App

configure-and-run-the-mobile-app page anchor

You can run the mobile app in the android emulator or on your own phone or tablet. Make sure the server is externally accessible, using ngrok or running it on a server with public IP.

Once the app loads in the simulator, you should see a UI like this one:

android_sync_tictactoe_pic.Rate this page:

Need some help?

Terms of service

Copyright © 2024 Twilio Inc.