×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jun 2010
    Location
    India
    Posts
    200

    in MIDLET inherirate methods protected void pauseApp()

    Hello Friends,
    I'd made some applications in J2ME.
    in MIDlet , startApp(), pauseApp() , destroyApp(boolean)
    this are inherited methods...i always use startApp() & destroyApp(boolean)
    ... i never use pauseApp() when this method will call & what is use of this method..
    thanks & Regards.
    Nilesh

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,087

    Re: in MIDLET inherirate methods protected void pauseApp()

    Quote Originally Posted by nyerunkar View Post
    Hello Friends,
    I'd made some applications in J2ME.
    in MIDlet , startApp(), pauseApp() , destroyApp(boolean)
    this are inherited methods...i always use startApp() & destroyApp(boolean)
    ... i never use pauseApp() when this method will call & what is use of this method..
    This method is called by the Application manager, when it wants to push the application to Pause state of the midlet lifecycle.
    for example - on a S40 device - if you are running the Midlet and at the same time you get a incoming phone call - the Application manager will push your midlet in pause state and once the call is finished ResumeApp() method will be called.
    thanks,
    ~Amitabh
    (Champion of the Month -Aug'13)
    Follow me on my blog for Innovative Mobile Apps

  3. #3
    Registered User
    Join Date
    Jun 2010
    Location
    India
    Posts
    200

    Re: in MIDLET inherirate methods protected void pauseApp()

    thnx for information....with nice example
    thanks & Regards.
    Nilesh

  4. #4
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: in MIDLET inherirate methods protected void pauseApp()

    When the pauseApp is called, depends on the platform. On some platforms receiving a phone call can cause pauseApp to be called. However, you should not expect that same behavior on all platforms.

    See this quote from the MIDP spec:
    "The application management software wants the MIDlet to significantly reduce the amount of resources it is consuming, so that they may temporarily be used by other functions on the device such as a phone call or running another MIDlet. The AMS will signal this request to the MIDlet by calling the MIDlet.pauseApp method. The MIDlet should then reduce its resource consumption as much as possible."

    Hartti

  5. #5
    Registered User
    Join Date
    Jun 2010
    Location
    India
    Posts
    200

    Re: in MIDLET inherirate methods protected void pauseApp()

    thanks........for explanation ...
    thanks & Regards.
    Nilesh

Similar Threads

  1. Mecessary methods of a MIDlet
    By apnasi in forum Mobile Java General
    Replies: 4
    Last Post: 2010-04-08, 06:11
  2. Accessing a SiteMinder protected page in Midlet
    By RoshanDawrani in forum Mobile Java General
    Replies: 2
    Last Post: 2006-10-12, 09:18
  3. Opening DRM protected files from a MIDlet.
    By balagopalks in forum Mobile Java General
    Replies: 1
    Last Post: 2006-04-19, 16:31
  4. 7250 i DRM methods & contents protected
    By pituvaca in forum Digital Rights Management & Content Downloading
    Replies: 4
    Last Post: 2003-10-29, 13:46
  5. required methods for midlet
    By nkn_motoko in forum Mobile Java General
    Replies: 1
    Last Post: 2001-11-28, 18:40

Posting Permissions

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