• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Close Application with softkey

 
Lanka Prasad
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear friends,

I have found a good class for SCMAD. I hope to get certified within 6-8 months.
During the first day I could display a TextBox using cldc.

After the application is started the phone has no method or key to quit from Application.
Need to reset phone.

Please, help me anyone how to implement only the Close action to a soft key.
I don't have MIDP compatible phone and No one like to download my Application since it won't quit.

-Lanka Prasad
 
Rashid Mayes
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most phones have an end key or equivalent than can be used to close applications. Some automatically add an exit option.

However, I would suggest adding a Command to your application. Please reference the javadoc for Command and CommandListener. I will have everything that you need to implement your exit command.

The javadoc is included with the WTK and available on
http://java.sun.com/javame/reference/apis.jsp
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic