title: save text from edit text using methods other than onFocusChanged
body: <p>So I am currently using the following method to save text to my <code>SharedPreferences SM</code>:</p>
  
  <pre><code>implementingacency.setOnFocusChangeListener(new OnFocusChangeListener() {
  
              @Override
              public void onFocusChange(View v, boolean hasfocus) {
                  if(!hasfocus){
                      EditText et = (EditText) v;
                      if(et.getText().toString().length()&gt;0)
                          SM.set_value(SharePrefForproject.KEY_implementationagency, et.getText().toString());
                  }
              }
          });
  </code></pre>
  
  <p>Here, the <code>implementingagency</code> is an <code>editText</code>. The problem I am having on save is that in some if the <code>editTexts</code> the <code>onFocusChangeListener</code> is not called and hence data is not saved. Can anyone recommend me another method to save data from editText ?</p>