Search code examples
javablackberrymenusmartphonelistfield

Selecing an item in a Blackberry ListField


I've been using this book as reference to creating my Blackberry application. So far I have a list of items and when I select one I get the side menu but next to my list item:

alt text

Just looking through my methods, I'm not sure which one causes this as I can remove the custom item (GetValue) from the Menu and it will still appear here when I select the list item!

I guess my question is, how can I stop this menu appearing and have a method fire instead? I can provide code if necessary but I don't know where to start with this one!

Thanks


Solution

  • Can you show your code when invoking the method.

    When I override the navigationClick method of the ListField class like in the code below it works properly. (no menu pops)

    protected boolean navigationClick(int status, int time){
        return true;
    

    }