Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DestroyApp() and notifydestroy()

 
vishwas bhatt
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Folks,
I am very confused in two things.
1) Can we stop user to exiting Game when he/she accidently press Red Button (Exit Button)
2)or if user press accidently Red Button(Exit button) then at next time start i want to start with Game Menu and in that Countinue should be selected. How can i able to know on start that application was exited properly on by accidently.

please help
Thanx

 
Iftikhar Ahmed
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i am not familiar with MIDP(i am working with CDC profile), but I can give you some general idea, perhaps it helps you out.
To give the continue option,You can just save a flag to keep track wether or not the application was normally terminated.
The value for this flag can be saved and loaded in some text file or cookie(if supported) or what ever user personalization mechanism you choose.
-iftikhar
 
vishwas bhatt
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Iftikhar,
I was thought for the same ...but some how in MIDP i don't find this approch
good. I know that there is some other way but don't know which way.

thanx for your prompt reply.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic