Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

notifyPaused() not necessarily called....
"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



Report this thread to moderator Post Follow-up to this message
Old Post
Anton Spaans
04-18-05 08:59 PM


Re: notifyPaused() not necessarily called....
Anton Spaans wrote: 
>
> But what if your phone does not call this 'notifyPaused()' callback method?[/color
]

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

Report this thread to moderator Post Follow-up to this message
Old Post
Darryl Pierce
04-23-05 01:58 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Java Help archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:14 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.