Thank you very much for your answers
Things I don't understand are 2:
1) Following the book I'm reading about Blackberry development, this method also shows up the context menu while clicking on a field, because we don't do any check on instance (I undrstood that in instance I have an int that tell me if the menu is contextual or main), so without any if-else I should see the contextual menu by clicking on a field (the images on the book show context menu!)
But in my simulator this code only work for main menù (clicking on berry button).
Why such behavior? I'm really getting frustrating reading one thing and seeing another...
Code:
// this work perfectly
protected void makeMenu(Menu menu, int instance)
{
super.makeMenu(menu, instance);
menu.add(new LoginMenuItem());
menu.add(new ClearMenuItem());
} 2) I wanted to try your suggest of
Quote:
|
you're overriding makecontextmenu in your main screen rather than your focusable field.
|
but where should I put my code? I only have this file (main screen) and another file (the application). I don't know where to put the code to override the method like you said...
I know maybe I'm asking easy things...but I need to understand these things
