This week's giveaway is in the Spring forum.
We're giving away four copies of Microservices Testing (Live Project) and have Chris Love & Andres Sacco on-line!
See this thread for details.
Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

BACK automatically set?

 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
reply
    Bookmark Topic Watch Topic
  • New Topic