content: package com.rahulsoni0.image2text;
  
  import androidx.appcompat.app.AppCompatActivity;
  
  import android.app.ActionBar;
  import android.content.Intent;
  import android.os.Bundle;
  import android.view.View;
  import android.view.WindowManager;
  
  import com.rahulsoni0.image2text.databinding.ActivityMainBinding;
  import com.rahulsoni0.image2text.tools.ScannerActivity;
  
  public class MainActivity extends AppCompatActivity {
      private ActivityMainBinding binding;// viewBinding
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          binding = ActivityMainBinding.inflate(getLayoutInflater());
          setContentView(binding.getRoot());
          if (getSupportActionBar() != null) {
              getSupportActionBar().hide();
          }
  
          binding.btnCapture.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  Intent i = new Intent(MainActivity.this, ScannerActivity.class);
                  startActivity(i);
              }
          });
  
  
      }
  }