×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Aug 2003
    Location
    Copenhagen, Denmark
    Posts
    5

    What to do while sending data ?

    Hi there!

    I am almost finished with my first MIDP 1.0 game, and in the game I have an optional feature, where you can contact a http server on the net, to get your highscore registered.

    Testing this on a real Nokia 6610 phone, gives me some problems, as this phone connects to the internet thru WAP dialup over GSM modem, which means that calling the http server could take approx. 30-45 seconds.

    But this call to the http server is not blocking - so after the user answers "Yes" to contacting the internet, after a few seconds the game returns to what it was doing.

    But I would like it to ie. show a dialog saying "sending data to remote server" while the http connection request is being processed.

    Any idea how I can accomplish this ?

    Ideas and comments are very welcome - thanks in advance.


    -
    Regards from Denmark,
    Tony Fonager

    www.pdatwins.com

  2. #2
    Registered User
    Join Date
    Aug 2003
    Posts
    37
    Of course you can have this connection in separate thread, and this thread could control the TextBox or something like this.

  3. #3
    Registered User
    Join Date
    Aug 2003
    Location
    Copenhagen, Denmark
    Posts
    5

    Solved it using a thread.

    I solved the problem, by putting the "dial up" in a seperate thread - it works as a charm, and does not delay the player, playing the game, more than 5-6 seconds.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×