title: Android : Minimum Length of password in edittext
body: <p>In android is there any simple way of setting minimum password length in edittext? In xml there is only an option of max length but not minimum.</p>
  
  <p>Options like setting ems and width fits for restricting the length but what about when to set minimum length???</p>
  
  <p>I found this in the documentation:</p>
  
  <pre><code>DevicePolicyManager mDPM;
  ComponentName mDeviceAdminSample;
  int pwLength;
  ...
  mDPM.setPasswordMinimumLength(mDeviceAdminSample, pwLength);
  </code></pre>
  
  <p>But is there any simpler method other than this?</p>