title: Setting a minimum and maximum value for android edit text preference
body: <p>I was wondering if there is a way to enforce a minimum value for the edit text preference.</p>
  
  <p>Here's my node for the EditTextPreference in the preference screen xml file:</p>
  
  <pre><code>    &lt;EditTextPreference
      android:id="@+id/txt_slideshow_speed"
      android:key="@string/prefSlideShowSpeedKey"
      android:persistent="true"
      android:inputType="number"
      android:max="3600"
      android:dialogTitle="Slideshow Speed (seconds)"
      android:defaultValue="@string/defaultSlideShowSpeedValue"
      android:title="Slideshow Speed" /&gt;
  </code></pre>