• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

BACK automatically set?

 
Brandi Love
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello! Forgive me if I've made a silly mistake here, I'm new to j2me. This class, InterLevelScreen, is supposed to start a GameScreen or go back if the "cancel" button is pressed. My problem is that when the "cancel" button gets added the CommandType is automatically set to back so instead of opening a GameScreen it goes back. I can't figure out why this is happening - if I remove the "cancel" button it works as it normally should. Below is my code, with a few useful comments in bold. Any help at all would be greatly appreciated! Thank you!


[ February 18, 2007: Message edited by: Brandi Love ]
 
lekkie Nakel
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What phone model are you using?

Also, I noted you did not set the commandstatelistener method. Try that out, it could be the problem.
 
Punit Raizada
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would say the problem lies elsewhere.. you seem to be using a sort of screen manager system in your application. Can you check your classes and see where the process method is being called?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic