textview not updating as expected
<p>I have multiple <code>TextView</code> and <code>EditText</code> fields in two different activities. When I go to my Edit screen, I can input values and the corresponding <code>TextViews</code> are updated. The problem is that if I were to edit just one <code>TextView</code>, then the other <code>TextViews</code> go blank and only the ones I edited will show the correct info.  Any suggestions? Attached is a snippet of code. So basically, I only want the <code>TextView</code> info to change when the <code>EditText</code> field is changed and not when the <code>EditText</code> is just selected or scrolled through.</p>

<p>The <code>EditText</code> code:</p>

<pre class="lang-java prettyprint-override"><code>editTextName.setOnKeyListener(new View.OnKeyListener() {
    public boolean onKey(View v1, int keyCode1, KeyEvent event1) {
        if ((event1.getAction() == KeyEvent.ACTION_DOWN) &amp;&amp; (keyCode1 == KeyEvent.KEYCODE_ENTER)) {
            getSharedPreferences("myprefs", 0).edit().putString("editTextName", editTextName.getText().toString()).commit();
            return true;
        }
        return false;
    }
});
</code></pre>

<p>The corresponding <code>TextView</code>:</p>

<pre class="lang-java prettyprint-override"><code>String newName = getSharedPreferences("myprefs", 0).getString("editTextName", this.getString(R.string.name) );
textViewName.setText("Name: "+newName);
</code></pre>
