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  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

SIEMENS 60AMPS 240 VOLTS AC 1 PHASE TYPE 3 ENCLOSURE WN2060 DISCONNECT
$25.0
SIEMENS 60AMPS 240 VOLTS AC 1 PHASE TYPE 3 ENCLOSURE WN2060 DISCONNECT pictureSiemens 5SX22C10 10 Amp 230 / 400 V Circuit Breaker 5SX22 C10
$9.99
Siemens 5SX22C10 10 Amp 230 / 400 V Circuit Breaker 5SX22 C10 pictureSiemens 5SX21C10 10 Amp 230 / 400 V Circuit Breaker 5SX21 C10
$6.99
Siemens 5SX21C10 10 Amp 230 / 400 V Circuit Breaker 5SX21 C10 pictureVINTAGE P4220 ITE Siemens Pushmatic 20 amp 2 pole
$35.0
VINTAGE P4220 ITE Siemens Pushmatic 20 amp 2 pole  pictureEC41B050 - NEW - Siemens / ITE 347 Volt Circuit Breaker - Free UPS Ground
$60.0
EC41B050 - NEW - Siemens / ITE 347 Volt  Circuit Breaker - Free UPS Ground picture






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