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 menu, int instance){
menu.deleteAll();
menu.add(new MenuItem("RFID Setup ", 40, 40) {
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 menu, int 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