title: Parse Int Crashes my program and yes I have my xml iput type set to number
body: <p>When I run my app everything works fine until I press a button that runs a method called calculate() and the parse int crashes the program.</p>
  
  <p>This is a simplified version of my problem. When I press the button "calculate" it runs the method calculate(). However, it crashes. No error is given it just crashes in the Emulator.</p>
  
  <p>JAVA CODE FOR MAIN ACTIVITY:</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
  
  }
  
  public void calculate(View view) {
      EditText length_find = findViewById(R.id.feet);
      EditText pounds_find = findViewById(R.id.pounds);
      int length = Integer.parseInt(length_find.getText().toString());
      int pounds = Integer.parseInt(pounds_find.getText().toString());
  
      int sum = length + pounds;
  
      Toast.makeText(MainActivity.this, sum, LENGTH_LONG).show();
  
  }
  }
  </code></pre>
  
  <p>XML CODE:</p>
  
  <pre><code>&lt;Button
      android:id="@+id/calculate"
      android:layout_width="158dp"
      android:layout_height="70dp"
      android:layout_marginStart="113dp"
      android:layout_marginEnd="113dp"
      android:layout_marginBottom="73dp"
      android:onClick="calculate"
      android:text="Calculate"
      app:layout_constraintBottom_toBottomOf="parent"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintStart_toStartOf="parent" /&gt;
  
  &lt;EditText
      android:id="@+id/pounds"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_marginStart="83dp"
      android:layout_marginTop="90dp"
      android:layout_marginEnd="86dp"
      android:layout_marginBottom="24dp"
      android:ems="10"
      android:hint="#'s"
      android:inputType="number"
      app:layout_constraintBottom_toTopOf="@+id/feet"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toTopOf="parent" /&gt;
  
  &lt;EditText
      android:id="@+id/feet"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_marginStart="83dp"
      android:layout_marginTop="23dp"
      android:layout_marginEnd="86dp"
      android:ems="10"
      android:hint="Feet"
      android:inputType="number"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toBottomOf="@+id/pounds" /&gt;
  </code></pre>