Allow limited keyboard digits in edit text, android?
<p>I want to allow only alphabets, numbers and some of the special characters in Edit text:</p>

<pre><code>android:digits="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 ()*-_,;':."
</code></pre>

<p>I also want to allow am-percent(&amp;) and double quote (")
When I add am-percent in digits i get this error</p>

<pre><code>The entity name must immediately follow the '&amp;' in the entity reference.
</code></pre>

<p>How do I add both of these special characters??</p>