• 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

Thread Problem ..it's urgent!

 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Folks,

I am developing game for Nokia series 60. I am facing one problem that if someone abruptly close the application rather going through the Game's exit button. then thread's are still alive. My main class implements Runnable Interface and i am using callserially() method. Now what i want that if user open up the same game again it should first show Menu with Countinue option selected. How can i do this pls tell me...I am stuck up here only

Thanx
wating for reply.
 
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by vishwas bhatt:
Hi Folks,

I am developing game for Nokia series 60. I am facing one problem that if someone abruptly close the application rather going through the Game's exit button. then thread's are still alive. My main class implements Runnable Interface and i am using callserially() method. Now what i want that if user open up the same game again it should first show Menu with Countinue option selected. How can i do this pls tell me...I am stuck up here only

Thanx
wating for reply.


should be the same way you handle threads when a call comes in interrupting the game..in fact if user closes phone they generate the same condition as an incomming call in that pauseApp in midlet is not called..
bascially you are building off isVisible on the displayable object..
several Nokia tutorials have directions on how to do this for incoming calls.. you will be using the same basic technique for when phone closess..
treat the close phone as interrupting the game dn save game state with a continue or exit screen coming up when phone is opened back up..
 
I got this tall by not having enough crisco in my diet as a kid. This ad looks like it had plenty of shortening:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic