Install the BaltoSDK in an Android App

This page will guide you through installing the BaltoSDK into your Android app which is done in Android Studio.

1. Add code to build.gradle

Add the following codes to app/build.gradle.

apply plugin: 'io.balto'

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'io.balto:balto-plugin:2.0.6'
    }
}

android {
    buildTypes {
        [YOUR_BUILD_TYPES] {
            debuggable true
        }
    }
}

dependencies {
    compile 'io.balto:balto-sdk:2.1.2'
}

2. Add Code to Application class

A. If an application class already exists

From your AndroidManifest.xml file,  <application android:name="classname" /> if the specified Application class already exists in the project, open the class and add the following code in the first row in onCreate().

Balto.init(this);

B. If an application class does not exist 

If the Application class does not exist in your project, create App.java in the package route. For example, if your app package name is  org.example, enter the details as src/org/example/App.java. And in that file, enter the following code:

package org.example;

import android.app.Application;
import com.goodpatch.feedbacktool.sdk.Balto;

public class App extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        Balto.init(this);
    }
}

Then in your AndroidManifest.xml file, under the  <application> tag, add the attribute,android:name.

By following the steps above will complete the process of installing the BaltoSDK into your Android app.

<application
    android:name=".App"
    android:label="@string/app_name"
    android:icon="@drawable/ic_launcher"
    android:theme="@style/AppTheme">

Other Notes

  • Balto requires Android 4.1 or higher.
  • You cannot upload an .apk file that does not have the BaltoSDK installed.
  • The .apk file cannot be uploaded more than once.
  • Reviewers will only be able to leave feedback on apps (projects) who have installed the projects via the Balto app. 

The Japanese version of this article can be found here: https://balto-ja.helpscoutdocs.com/article/56-install-balto-sdk-android-app

Still need help? Contact Us Contact Us