There is an error in the tutorial on developer.android.com
should be:

    @Override
    public void onCreateContextMenu(ContextMenu menu, View v,
                ContextMenuInfo menuInfo) {
        super.onCreateContextMenu(menu, v, menuInfo);
        menu.add(0, DELETE_ID, 0, R.string.menu_delete);
    }

The first arg's type should be ContextMenu, not Menu

Cheers

On 11 avr, 17:06, "[email protected]"
<[email protected]> wrote:
>     public boolean onCreateContextMenu(Menu menu, View
> v,ContextMenuInfo menuInfo) {
>         super.onCreateContextMenu(menu, v, menuInfo);
>                 menu.add(0,DELETE_ID, 0, R.string.menu_delete);
>
>         }
>
> hi i did the notepadv2-tutorial and at this method eclipse shows me an
> error: that this method in the type Activity is not applicable for the
> arguments(menu, v, menuinfo). what's here the problem?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to