Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to refresh the display?

 
Jorma Ikonen
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Is there any way to refresh the display after menu re-generation? I'm using "removeCommand()" and "addCommand()"-methods after each network request, but somehow these menus aren't visible even these are there (reacts to push). I'm able to get display refreshed if the last statement after menu re-generation uses Alert-class like "New menu generated", but this way to confirm the generation do not fit to orginal UI-design...
This problem occurs only with Nokia's emulator (Series 60 MIDP Concept SDK Beta 03) and Sun's similar works fine. Is this a bug in Nokia's emulator, or is there a suitable method to solve the problem? I'm been trying to take a look into each potential API-classes, but haven't found any what could work.
Network requests and menu generations are located in own thread "to avoid potential deadlock".
Thanks in advance.
-Jorma-
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Note the emulator is "Concept Beta":
"Concept": It is not based on the code for the actual device. Instead it is pure X86 emulator code.
"Beta": It is not a final product.
So, there will be bugs. I'd be curious whether the 3650 device behaves the same way.
 
Jorma Ikonen
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, it would be nice to know, but don't have emulator for 3650 and I didn't find it by short look into the download page on www.forum.nokia.com.
My Nokia Developer suite offers two emulators, one for that Beta concept and one for 7210. Unfortunatelly, my applicaton do not work with 7210 by reason; "Cannot create class in system package".
I'm not sure what causes this error on 7210 emulator, but assuming the emulator to be reserved for testing of older phones with definitions of MIDP 1.0?
-Jorma-
 
David Price
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're right: the Nokia 7210 emulator only supports MIDP 1.0 (since the Nokia 7210 phone only supports MIDP 1.0). If your application is a MIDP 2.0 application, it won't run in the Nokia 7210 emulator. If it did run, it wouldn't be a proper emulation
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic