android simple calculator application prblm
<p>i m newer to android... developing a simple calculator application..
there is some problem in my code.. can any one help m for it.. there is no syntax error..
where i run it its giving some error.. written all code in try catch but still can't able to catch it..
thanx in advance but please help me fast.. :)</p>

<p>this is code :</p>

<pre><code>       b1.setOnClickListener(new View.OnClickListener() {

        public void onClick(View v) {
            // TODO Auto-generated method stub
            //char x = lbldisp.getText().toString().charAt(1);

        try
        {
            String x = lbldisp.getText().toString();
            if(x.charAt(0)=='0' &amp;&amp; x.charAt(1)!='.')
            {
                    lbldisp.setText("1");
            }
            else
            {
                lbldisp.setText(x+"1");
            }

        }
        catch(Exception e)
        {
            Toast.makeText(Calculator.this,e.getMessage().toString(), Toast.LENGTH_SHORT).show();
        }
        }
    });
</code></pre>
