• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

J2ME Blank Screen

 
Brian Rowland
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
what is the code for making a screen go blank for a few seconds while an application is being run? Like when the player reaches a certain score I want to pause the game, place a blank screen for about 5 seconds and print a message to the screen with the users score before returning to the game with another little delay!

If anyone knows the code to use it would be great.

Also, on another note, with an unsigned midlet that wants to access an outside connection, despite the permissions set on the phone and on the application, is it the case that every time the connection is attempted it will ask the user to 'ok' it before continuing? Will this occur regardless of what the user agreed to the last time or even if it tries to gain the connection more than once during the same instance of the application? Will the phone recognise self signed midlets at all or is there any known way around shelving out a few hunderd quid just to get a little application signed? Its only for my own use so is not worthwhile certifying.

Cheers...
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Boy, that's a lot of questions in one post.

I'll try to answer some of them.

As far as the user having to accpet the connection, there are three choices that the user can select when asked to give permission to a Connection.

They can obviously accept or reject. When they accept, they can say that it is a one time decision, or they can select it as a blanket choice, meaning that they won't be asked again. I think the third is session, meaing while the MIDlet is running it won't ask again. But once the MIDlet stops, and then you rerun the same MIDlet, then it will ask again.

As far as signing it yourself, well, how does the phone know that you are OK, that is why there are the signing authorities. The phone knows who they are, and if they say your MIDlet is OK, well, heck it must be OK.

Mark
 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Brian Rowland

About your first question, how to load a screen with msg and pause for a few seconds. You can load a screen with a timer, when user key strikes a few times, you load the same screen until it is ready to go back to your game.

I hope this helps.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic