Home > Archive > Java Help > April 2005 > notifyPaused() not necessarily called....
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
notifyPaused() not necessarily called....
|
|
| Anton Spaans 2005-04-18, 3:59 pm |
|
"Darryl Pierce" <mcpierce@gmail.com> wrote in message
news:E468e.87404$wo1.58259@bignews6.bellsouth.net...
> Anton Spaans wrote:
>
> Of course it is! It's in the specification: MIDlet.notifyPaused() does
> exactly what he's asking.
But what if your phone does not call this 'notifyPaused()' callback method?
Instead, your phone may be very low on resources and decides to close your
J2ME program all together (e.g. when an incoming call must be handled)
I agree; *if* your midlet's notifyPaused() is called, then you can handle
some code to clean up some resources to go into 'minimized' state.
>
> --
> Darryl L. Pierce <mcpierce@gmail.com>
> Visit my homepage: http://mcpierce.multiply.com
> "By doubting we come to inquiry, through inquiry truth." - Peter Abelard
| |
| Darryl Pierce 2005-04-22, 8:58 pm |
| Anton Spaans wrote:
>
> But what if your phone does not call this 'notifyPaused()' callback method?
Then the handset's not up to the specification, since it's supposed to
do just that.
> Instead, your phone may be very low on resources and decides to close your
> J2ME program all together (e.g. when an incoming call must be handled)
Then in that case the phone must call MIDlet.destroyApp(boolean).
> I agree; *if* your midlet's notifyPaused() is called,
It's MIDlet.pauseApp(). MIDlet.notifyPaused() is how the application
tells the handset that it wants to be paused.
--
Darryl L. Pierce <mcpierce@gmail.com>
Visit my homepage: http://mcpierce.multiply.com
"By doubting we come to inquiry, through inquiry truth." - Peter Abelard
|
|
|
|
|