Android documentation


Doorbell requires a min SDK version of 16.

You can install Doorbell via Maven Central.

Include the following in your dependencies:

implementation 'io.doorbell:android-sdk:0.3.2@aar'

Note If you're using an older version of Gradle, you will need to use compile instead of implementation

For the library to work, your app will need to have the Internet permission. To do this (if it doesn't already), just add the following line to your application's AndroidManifest.xml:

<uses-permission android:name="android.permission.INTERNET" />

In the activity where you want to use Doorbell, you'll need to import the library using:



The Doorbell object extends the AlertDialog.Builder class, so you can access all the existing methods (such as setTitle(String title)).

There are more methods that you can call on the Doorbell object though:

  • setEmail(String email)
  • addProperty(String key, Object value)
  • captureScreenshot()
  • enableNPSRatings()
  • disableNPSRatings()
  • resetProperties()
  • setTags(ArrayList<String> tags)
  • show()

And also you can access all the views in the Dialog with the following methods:

  • getMessageField()
  • getEmailField()
  • getNPSLabel()
  • getNPSField()
  • getNPSScoreLabelLow()
  • getNPSScoreLabelHigh()
  • getPoweredByField()


    // In your activity
    int appId = 0; // Replace with your application's ID
    String apiKey = "YOUR-API-KEY-GOES-HERE"; // Replace with your application's API key

    Doorbell doorbellDialog = new Doorbell(this, appId, apiKey); // Create the Doorbell object

    doorbellDialog.setEmail(""); // Prepopulate the email address field
    doorbellDialog.setName("Philip Manavopoulos"); // Set the name of the user (if known)
    doorbellDialog.addProperty("loggedIn", true); // Optionally add some properties
    doorbellDialog.addProperty("username", 'manavo');
    doorbellDialog.addProperty("loginCount", 123);
    doorbellDialog.getEmailField().setVisibility(View.GONE); // Hide the email field, since we've filled it in already
    doorbellDialog.setTags(new ArrayList<String>(Arrays.asList("tag1", "tag2")));

    // Capture and send a screenshot of the current activity,
    // (only available on certain paid plans)

    // Enable NPS ratings (only available on certain paid plans)

    // Callback for when a message is successfully sent
    doorbellDialog.setOnFeedbackSentCallback(new {
        public void handle(String message) {
            // Show the message in a different way, or use your own message!
            Toast.makeText(context, message, Toast.LENGTH_LONG).show();

    // Callback for when the dialog is shown
    doorbellDialog.setOnShowCallback(new {
        public void handle() {
            Toast.makeText(context, "Dialog shown", Toast.LENGTH_LONG).show();


As shown above in the example, the Android SDK can capture a screenshot of the current activity, and attach it to the message being submitted.

To make the most of this, please ensure that a button to send your a message is included on all activities on which a screenshot would be important.

The ability to capture a screenshot and show Doorbell when the user shakes their device will be released soon.

Shake gesture

You can configure Doorbell to be shown when the device is shaken.

You can configure this in each activity.



    public class MyActivity extends Activity {
        int appId = 0; // Replace with your application's ID
        String apiKey = "YOUR-API-KEY-GOES-HERE"; // Replace with your application's API key

        protected Doorbell doorbellDialog;

        protected void onCreate(Bundle savedInstanceState) {

            this.doorbellDialog = new Doorbell(this, appId, apiKey);

        protected void onResume() {

        protected void onPause() {