Hide password with dots for an edittext in android
<p>I am trying to hide the password in edittext and the code is :</p>

<pre><code>text.setInputType(InputType.TYPE_TEXT_VARIATION_PASSWORD);

text.setTransformationMethod(new PasswordTransformationMethod());
</code></pre>

<p>The same code is working in my other application.</p>

<p>Can somebody help me on this.</p>

<p>Thanks in advance. </p>
