×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    May 2007
    Posts
    2

    Question Phone breaks when the application gets an interruption

    Hi everybody!

    I wish you can help me with this problem!

    I develop an application using J2ME and I tested it on a Nokia N70 and a Nokia 6680 and i get an error when the application gets an interruption (for example a call is comming). When it occurs and the call is finished, the phone breaks (doesn't respond to any key). I think is a problem with eh appPause state of the midlet but i can't find the problem. I also tested the application on a Samsung Z140 and it doesn't breaks.

    Maybe is a problem with the Canvas?? setClip() or clipRect() methods of the graphics object??

    Help me please!!!

    Thanks in advance!

  2. #2
    Registered User
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,884

    Re: Phone breaks when the application gets an interruption

    Hi jjimenez,

    Are you using Canvas or Form? Are you releasing resources? Note that both devices are Symbian based and you should note that maybe the pauseApp() method is not called. You can check more about that using the link below:

    "On Symbian OS the behaviour of the AMS is customisable by the handset manufacturer (licensee) so the circumstances under which the notification methods are called (particularly the pauseApp method) may (and does) vary from device to device."

    In summary, it does not work on S60 but does work on UIQ.

    Check the doc below for more information.

    Programming the MIDP Lifecycle on Symbian OS
    http://developer.symbian.com/main/do...plifecycle.pdf



    Kind regards,
    Last edited by juarezjunior; 2007-05-07 at 23:34.
    Juarez Alvares Barbosa Junior - Brazil

  3. #3
    Registered User
    Join Date
    May 2007
    Posts
    2

    Re: Phone breaks when the application gets an interruption

    Hi again!

    First of all, thanks for your reply juarezjunior!

    I readed the document you mentioned and i tried some new ideas but nothing goes on... Maybe im using a lot of classes or something like this that is overflowing the memory when the AMS puts the midlet in a paused state?

    I have seen that the problem is the same in a different project that uses some custom controls that i developed before...the project is smaller than the first one, but continues with the same problem...any idea??

  4. #4
    Registered User
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,884

    Re: Phone breaks when the application gets an interruption

    Hi jjimenez,

    Hard to figure out by reading your description. Is there any error or exception being thrown? Are you sure there are no locked resources?

    Kind regards,
    Juarez Alvares Barbosa Junior - Brazil

  5. #5
    Nokia Developer Champion
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192

    Re: Phone breaks when the application gets an interruption

    jjimenez,

    S60 VM does not call pauseApp at all. If the system or user places the MIDlet in the background, the hideNotify() in Canvas class is called. Form-based applications can query if they are in the foregraound using isShown() method call.
    My guess is that your application, what ever it does, exhausts itself during the time of the phone call if you are relying on the pauseApp to be called.

    Hartti

  6. #6
    Regular Contributor
    Join Date
    Aug 2006
    Location
    Rawalpindi, Pakistan
    Posts
    486

    Re: Phone breaks when the application gets an interruption

    hartii what do u mean when u say exhuast urself? u mean to say application is trying to call PauseApp() but it cant and midlet terminates?
    Regards
    Nouman

Similar Threads

  1. Auto-run phone application using Timer
    By euglena9 in forum Mobile Java General
    Replies: 1
    Last Post: 2006-05-03, 14:36
  2. Replies: 3
    Last Post: 2004-03-03, 05:59
  3. Replies: 0
    Last Post: 2003-12-30, 20:32
  4. Replies: 1
    Last Post: 2003-12-22, 13:11

Posting Permissions

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