title: Getting "Expected 2 arguments but found 1" when getting the intExtra on the Activity result. Not sure what's wrong here
body: <p>I am doing the homework exercise from googles &quot;Android fundamentals codelab&quot; here -&gt;</p>
  <p><a href="https://codelabs.developers.google.com/codelabs/android-training-create-an-activity/index.html?index=..%2F..android-training#11" rel="nofollow noreferrer">https://codelabs.developers.google.com/codelabs/android-training-create-an-activity/index.html?index=..%2F..android-training#11</a></p>
  <p>and I keep getting this:</p>
  <pre><code>Expected 2 arguments but found 1
  </code></pre>
  <p>error when I try to get the <code>intExtra</code> on the Activity result method. I'll post the code below</p>
  <pre class="lang-java prettyprint-override"><code>@Override
  protected void onActivityResult(int requestCode, int resultCode, Intent data) {
      super.onActivityResult(requestCode, resultCode, data);
      if (requestCode == TEXT_REQUEST) {
          if (resultCode == RESULT_OK) {
              count = data.getIntExtra(HelloActivity.EXTRA_REPLY);
              mTextView.setText(String.valueOf(count));
          }
      }
  }
  </code></pre>
  <p>The error occurs on line 40 (<code>count = data.getIntExtra(HelloActivity.EXTRA_REPLY);</code>).</p>
  <p>I know there are other questions here that ask something similar but I am a beginner on Android and java in general so it is difficult for me to understand those solutions in a way that is useful for my problem. a Layman's terms explanation would also be greatly appreciated. thank you!</p>