Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User yair.zaslavsky's Avatar
    Join Date
    May 2006
    Posts
    12
    Good day,
    I have a question about the usage of pauseApp - is it possible to call it in an explicit way?
    I would like to pause my midlet (I am using nokia6280 - S40 3rd eddition device)


    Thanks

    Yair

  2. #2
    Registered User juarezjunior's Avatar
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,883
    Hi Yair,

    I'm not sure what your issue is but you should use the method notifyPaused() of MIDlet class. Check the info below from the Javadocs:

    "Notifies the application management software that the MIDlet does not want to be active and has entered the Paused state. Invoking this method will have no effect if the MIDlet is destroyed, or if it has not yet been started.

    It may be invoked by the MIDlet when it is in the Active state.

    If a MIDlet calls notifyPaused(), in the future its startApp() method may be called make it active again, or its destroyApp() method may be called to request it to destroy itself.

    If the application pauses itself it will need to call resumeRequest to request to reenter the active state. "

    More on MIDlet lifecycle:

    Understanding J2ME Application Models
    http://developers.sun.com/techtopics...ticles/models/

    BR,

    Juarez Junior

  3. #3
    Super Contributor shmoove's Avatar
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    On phones where a MIDlet can be sent to the background you can usually do it by calling Display.setCurrent(null). But on phones that are not multitasking this won't have any effect at all.

    shmoove

Similar Threads

  1. Using calling cards with Nokia 6600
    By steffi1 in forum General Development Questions
    Replies: 3
    Last Post: 2008-01-21, 03:49
  2. a question about command and a question about s60
    By t4kesting in forum Mobile Java General
    Replies: 0
    Last Post: 2006-01-24, 08:21
  3. Strange question on 6230
    By DanAvni1 in forum Mobile Web Site Development
    Replies: 1
    Last Post: 2005-04-18, 06:05
  4. Replies: 2
    Last Post: 2004-01-08, 18:36
  5. Sending data using iAcceptedSocket (Urgent question)
    By okegame in forum Bluetooth Technology
    Replies: 1
    Last Post: 1970-01-01, 02:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved