title: Not supplying enough data to HAL, expected position
body: <p>I'm getting this error in Android Studio. I just want to print the text when I push the button. I get the below error, which appears every time I press the button. If I uncomment out the intent it works perfectly fine as well, but the more code I have the more the error changes. I am not actually sure this is the true error. I say this because I have an entire app (not this one) that uses retrofit and github api to search for repos. This button is the nexus for searching. If I hard code in a word the app works perfectly. I finally got to this simplified app in an attempt to find the root cause. Please help. </p>
  
  <p>1.
  </p>
  
  <pre><code>10-17 15:33:56.569 1404-1431/? W/audio_hw_generic: Not supplying enough data to HAL, expected position 2045606 , only wrote 1793520
  </code></pre>
  
  <p></p>
  
  <ol start="2">
  <li>This is the code</li>
  </ol>
  
  <p></p>
  
  <pre><code>import android.content.Intent
  import android.support.v7.app.AppCompatActivity
  import android.os.Bundle
  import android.widget.Button
  import android.widget.EditText
  
  
  class MainActivity : AppCompatActivity() {
  
      override fun onCreate(savedInstanceState: Bundle?) {
          super.onCreate(savedInstanceState)
          setContentView(R.layout.activity_main)
  
          val editText = findViewById&lt;EditText&gt;(R.id.searchEditText)
          val searchEditText = editText.text.toString()
  
  
          val button = findViewById&lt;Button&gt;(R.id.searchButton)
          button.setOnClickListener {
              println(searchEditText)
              //val intent = Intent(this,SearchResultActivity::class.java)
              //intent.putExtra("searchTerm",searchEditText)
              //startActivity(intent)
          }
      }
  }
  </code></pre>
  
  <p></p>
  
  <ol start="3">
  <li>This is the manifest</li>
  </ol>
  
  <p></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.example.blah.test236"&gt;
  
  &lt;application
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:roundIcon="@mipmap/ic_launcher_round"
      android:supportsRtl="true"
      android:theme="@style/AppTheme"&gt;
      &lt;activity android:name=".MainActivity"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  
      &lt;activity android:name=".SearchResultActivity" /&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p> 
  </p>
  
  <ol start="4">
  <li>This is the xml file</li>
  </ol>
  
  <p></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.constraint.ConstraintLayout 
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context="com.example.dnarialpressley.test236.MainActivity"
      tools:ignore="DuplicateIds"&gt;
  &lt;EditText
      android:id="@+id/searchEditText"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_marginTop="50dp"
      android:ems="10"
      android:inputType="textPersonName"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintHorizontal_bias="0.5"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toTopOf="parent" /&gt;
  
  &lt;Button
      android:id="@+id/searchButton"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_marginTop="8dp"
      android:text="@string/button"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintHorizontal_bias="0.5"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toBottomOf="@+id/searchEditText" /&gt;
  &lt;/android.support.constraint.ConstraintLayout&gt;
  </code></pre>
  
  <p></p>