• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • 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?
 
This tiny ad is guaranteed to be gluten free.
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic