@Override
  public void onCreate(Bundle bundle) {
    super.onCreate(bundle);
    setContentView(R.layout.license_scrollview);

    License license = getIntent().getParcelableExtra(LicenseMenuActivity.ARGS_LICENSE);
    getSupportActionBar().setTitle(license.getLibraryName());

    // Show 'up' button with no logo.
    getSupportActionBar().setDisplayShowHomeEnabled(true);
    getSupportActionBar().setDisplayHomeAsUpEnabled(true);
    getSupportActionBar().setLogo(null);

    TextView textView = (TextView) findViewById(R.id.license_activity_textview);
    String licenseText = Licenses.getLicenseText(this, license);
    if (licenseText == null) {
      finish();
      return;
    }
    textView.setText(licenseText);
  }
Simple Activity that renders locally stored open source legal info in a text view.
java/com/google/android/apps/authenticator/license/LicenseActivity.java