App hangs when registering for context menu
<p>In my webview, I want to open a context menu whenever there is a long click on any view.</p>

<p><strong>All my context menu related code:-</strong></p>

<pre><code>public void onCreateContextMenu(ContextMenu menu,View view,ContextMenuInfo menuInfo)
  {
      super.onCreateContextMenu(menu, view, menuInfo);
      menu.setHeaderTitle("Options");
      menu.add(0,view.getId(),0,"Save File");
      menu.add(0,view.getId(),0,"Show URL");
  }

/**
 * Context menu
 */
public boolean onContextItemSelected(MenuItem item)
{
    if(item.getTitle()=="Save File")
    {   
        return true;
    }
    else if (item.getTitle()=="Show URL")
    {myWebView.setWebViewClient(new WebViewClient() { 
        public boolean shouldOverrideUrlLoading(WebView view, String url){
            myWebView.loadUrl(url); 
            // Here the String url hold 'Clicked URL' 
            displayMessage(url);
            return false; 
        } 
    });
        return true;
    }
    return false;
}
</code></pre>

<p>Then I am doing this in onCreate()</p>

<pre><code>this.registerForContextMenu(myWebView);
</code></pre>

<p>And the app force closes. Am I doing something wrong here, please point it out to me.</p>
