Not able to get '.' dot pressed event in android onkeypressed
<p>Hi i am trying to get the event when i press . dot in android key board </p>

<pre><code> public boolean onKey(View v, int keyCode, KeyEvent event) {

   if (keyCode == '.') {
        Log.d("dot pressed" "dot presed");

       where i am getting wrong?
</code></pre>
