BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 01-19-2010, 10:16 AM   #1
hibbert
Thumbs Must Hurt
 
Join Date: May 2007
Location: berlin, germany
Model: 8310
PIN: N/A
Carrier: vodafone
Posts: 163
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



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


BISSELL 3-in-1 Turbo Lightweight Stick Vacuum, 2610 (Black) picture

BISSELL 3-in-1 Turbo Lightweight Stick Vacuum, 2610 (Black)

$36.06



Shop Vacuum upholstery extractor conversion kit auto vac detail carpet or home.  picture

Shop Vacuum upholstery extractor conversion kit auto vac detail carpet or home.

$220.00



Bee Vacuum Gate for Beekeeping with Nail Lock picture

Bee Vacuum Gate for Beekeeping with Nail Lock

$17.76



Vacuum pump picture

Vacuum pump

$125.00



Karcher - Brand New Ranger Commercial Upright Vacuum Cleaner #1.012-900.0 (F) picture

Karcher - Brand New Ranger Commercial Upright Vacuum Cleaner #1.012-900.0 (F)

$228.00



Pneumatic Micro Vacuum for Powder Coating - Easily Remove Powder Economy Versio picture

Pneumatic Micro Vacuum for Powder Coating - Easily Remove Powder Economy Versio

$135.00







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