content: package cultoftheunicorn.marvel;
  
  import android.content.Intent;
  import android.support.v7.app.AppCompatActivity;
  import android.os.Bundle;
  import android.support.v7.widget.Toolbar;
  import android.view.View;
  import android.widget.Button;
  
  import org.opencv.cultoftheunicorn.marvel.R;
  
  public class MainActivity extends AppCompatActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          Toolbar toolbar = (Toolbar) findViewById(R.id.app_bar);
          setSupportActionBar(toolbar);
  
          if(getSupportActionBar() != null) {
              getSupportActionBar().setTitle("Marvel");
          }
  
          Button recognizeButton = (Button) findViewById(R.id.recognizeButton);
          Button trainingButton = (Button) findViewById(R.id.trainingButton);
  
          recognizeButton.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View view) {
                  startActivity(new Intent(MainActivity.this, Recognize.class));
              }
          });
  
          trainingButton.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View view) {
                  startActivity(new Intent(MainActivity.this, NameActivity.class));
              }
          });
  
      }
  }
  