To send errors to Rollbar from your Java application, you should use our rollbar-java package.



For an Android app, we have some more specific pieces which allow you to capture more information about the Android environment automatically than what you would have to do with rollbar-java directly.

Set your access token in your AndroidManifest.xml file:

<?xml version="1.0" encoding="utf-8"?>
<manifest ...>
    <application ...>
        <meta-data android:name=""
        android:value="{{ client_access_token }}" />

Then initialize Rollbar in your MainActivity:


public class MainActivity extends AppCompatActivity {

  protected void onCreate(Bundle savedInstanceState) {

You can then make direct calls to Rollbar via the managed instance:

void clickAction() {
  Rollbar.instance().log("Some button was clicked");

All uncaught exceptions which cause a crash will also be logged by Rollbar, but will not be sent until the next time the app runs.

You can see a rollbar-android example on GitHub.


All configuration is done via the Config object in rollbar-java. You can see the interface here.