BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 01-19-2010, 10:16 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: May 2007
Location: berlin, germany
Model: 8310
PIN: N/A
Carrier: vodafone
Posts: 163
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default makeMenu does not work after 10 times

Please Login to Remove!

Hi,
I have got an application which has 7 screens and in all of thoses screens I do have custom menus.

So I have overwritten the makeMenu void.

Then I start my application on the BB and open one of those 7 screens. I fress the Trackbar (BB 8900 Java v4.6.1.133) an my custom menu appears and I can choose one Item. All fine. But after 10 or 15 times the menu doesn't appear.
When I debug my app, then the makeMenu void is executed but the menu doesn't apper, but all other actions are executed.

Then I leave the screen and go back to the "mainScreen" of my Application and press the trackball again the menu doesn't appear. The same on all other Screens.

Also the "back"-Key doesn't work in some screens.

Some code maybe Help:
PHP Code:
 private final classmyMainscreen extends MainScreen {
         protected 
void makeMenu(Menu menuint instance){
               
menu.deleteAll();
                 
menu.add(new MenuItem("RFID Setup "4040) {
                    public 
void run() {
                        
openMyForm(RFIDsetupForm);
                    }
                });
                
                
/*
                 menu.add(new MenuItem("RFID schreiben", 130000, 5) {
                    public void run() {
                        openMyForm(RFIDwriteform);
                    }
                });
                */
                // test ende
//...

and from one other form:
PHP Code:
// c is a ListField
 
protected void makeMenu(Menu menuint instance){
        final 
int idx c.getSelectedIndex();
        
System.out.println("Index: " idx);
        
        
menu.deleteAll();
        
        try {       
               
        
menu.add(new MenuItem("Details"200000,20) {
            public 
void run() {
                
clsAuftrag dummy = (clsAuftrag)auftragsListe.elementAt(idx);
                
auftragDetails form = new auftragDetails("blaaa");
                
UiApplication.getUiApplication().pushScreen(form);
            }
        }); 
    }catch (
Exception ex1) {
        
System.out.println("Error 0x332: " ex1.toString());
    }
// ...

maybe some can give me a hint how to fix this problem

thanks hibbert
__________________
My English is so bad, that makes me nobody so quickly after
Offline  




Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.