exceptions in program
<p>I tried to execute the following piece of code.If i enter the site names with http [for eg:<code>http://www.google.com</code>] am getting correct output.Otherwise I am getting force close. Even I am catching the activitynotfoundexception then also I am getting <code>ActivityNotFoundException</code>.</p>

<p>Help me.</p>

<pre><code>try {
    Button browse=(Button)findViewById(R.id.Browse);
    browseURl=(EditText)findViewById(R.id.BrowseUrl);
    browse.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View v) {
            // TODO Auto-generated method stub

            Intent invokeURI=new Intent(Intent.ACTION_VIEW,Uri.parse(browseURl.getText().toString()));
            startActivity(invokeURI);
        }
    });
} catch (ActivityNotFoundException ex) {
    // TODO: handle exception

    Log.e("BrowseURI","Failed Browsing the given URI",ex);
}
</code></pre>
