title: Get EditTextPreference value
body: <p>I've created an EditTextPreference and now I want to get the value from any other activity. I've been trying a lot of things but I cannot get it working. Where is this value stored? How can I retrieve it?</p>
  
  <p>EDIT: I want to get the value from a different activity, not the <code>Preferences</code> activity.</p>
  
  <p><code>settings.xml</code></p>
  
  <pre><code>&lt;EditTextPreference
      android:title="EditText1"
      android:key="edit1"
      android:defaultValue="0"
      android:dialogIcon="@drawable/fleetespiar"
      android:inputType="number" /&gt;
  </code></pre>
  
  <p><code>Settings.java</code> <strong>(How to do this in a different activity)</strong></p>
  
  <pre><code>Preference edit1= findPreference("edit1");
  EditTextPreference editt1 = (EditTextPreference) edit1;
  
  System.out.println(String.valueOf(editt.getText().toString()));
  </code></pre>