context menu and option menu
<p>this code execute correctly if i replace onMenuItemSelected by onContextItemSelected</p>

<pre><code>   public boolean onMenuItemSelected(int featureId, MenuItem item) {
    switch(item.getItemId()) {

    case CALL_ID:
 {
      AdapterContextMenuInfo info2 = (AdapterContextMenuInfo) item.getMenuInfo();
          String phone=mDbHelper.getPhone(info2.id);
         String toDial="tel:"+phone.toString();

startActivity(new Intent(Intent.ACTION_DIAL,Uri.parse(toDial)));
        return true;

 }

}
    return super.onMenuItemSelected(featureId, item);
}
</code></pre>

<p>the logcat show <code>01-02 20:54:45.243: ERROR/AndroidRuntime(279): FATAL EXCEPTION: main
01-02 20:54:45.243: ERROR/AndroidRuntime(279): java.lang.NullPointerException
01-02 20:54:45.243: ERROR/AndroidRuntime(279):     at com.android.managecontact.onMenuItemSelected(managecontact.java:170)
01-02 20:54:45.243: ERROR/AndroidRuntime(279):     at com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected(PhoneWindow.java:730)
01-02 20:54:45.243: ERROR/AndroidRuntime(279):     at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:143)
01-02 20:54:45.243: ERROR/AndroidRuntime(279):     at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:855)
01-02 20:54:45.243: ERROR/AndroidRuntime(279):     at com.android.internal.view.menu.IconMenuView.invokeItem(IconMenuView.java:532)
01-02 20:54:45.243: ERROR/AndroidRuntime(279):     at com.android.internal.view.menu.IconMenuItemView.performClick(IconMenuItemView.java:122)
01-02 20:54:45.243: ERROR/AndroidRuntime(279):     at android.view.View$PerformClick.run(View.java:8816)
01-02 20:54:45.243: ERROR/AndroidRuntime(279):     at android.os.Handler.handleCallback(Handler.java:587)
01-02 20:54:45.243: ERROR/AndroidRuntime(279):     at android.os.Handler.dispatchMessage(Handler.java:92)
01-02 20:54:45.243: ERROR/AndroidRuntime(279):     at android.os.Looper.loop(Looper.java:123)
01-02 20:54:45.243: ERROR/AndroidRuntime(279):     at android.app.ActivityThread.main(ActivityThread.java:4627)
01-02 20:54:45.243: ERROR/AndroidRuntime(279):     at java.lang.reflect.Method.invokeNative(Native Method)
01-02 20:54:45.243: ERROR/AndroidRuntime(279):     at java.lang.reflect.Method.invoke(Method.java:521)
01-02 20:54:45.243: ERROR/AndroidRuntime(279):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
01-02 20:54:45.243: ERROR/AndroidRuntime(279):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
01-02 20:54:45.243: ERROR/AndroidRuntime(279):     at dalvik.system.NativeStart.main(Native Method)
</code></p>
