×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2006
    Posts
    9

    "Task Management" s60 feature and midlet

    Hello,
    Here is my newbie question of the day :

    On s60 platforms, As far as i have understood, reading the forums, it is possible, once a midlet has been launched, to flick back to the Menu mode (by pressing the menu button for a few secs) ?

    If it is true, what is then the status of the midlet once we move back to the main menu ? Is the midlet pauseApp'ed ? Is it still running ?

    Can the midlet still have business processing while the main menu is in front screen ?

    Are there docs or threads discussing such issue ?

  2. #2
    Super Contributor
    Join Date
    Dec 2005
    Location
    Europe/Poland/Warsaw
    Posts
    1,697

    Re: "Task Management" s60 feature and midlet

    hi,

    not sure what "menu" option you are reffering, do you mean "Applications" key?

    some info:
    Java Developer Library Nokia doc:
    Pausing a MIDlet

    Note: The pauseApp() method is not supported in Series 40 GSM/WCDMA devices. However, it is supported in CDMA devices for some operators.

    In many cases it is useful or even necessary to have the MIDlet pause itself automatically. For example, all possible system notifications are shown over the MIDlet, thus the MIDlet is hidden in the background. Note that with Series 40 devices, a phone call, for example, interrupting the application is the only way for the application to enter the Paused state.

    MIDP specifications define that a system can set MIDlets to the paused state (the pauseApp() method) if the system needs a lot of the device’s resources. In the paused state, the MIDlet frees all its resources. The currently available Series 60 devices have sufficient running power and memory, and they do not need to enter the Paused state. This means that you must create your own pausing mechanisms.

    In other words, you must create a method that pauses an active session when one of the following events occurs during the MIDlet interaction:

    *

    A system notification is shown on the screen (for example, an incoming call, or notification of battery full or low).
    *

    The user presses the red dial key, the power key or the application key of the device.
    *

    The main screen of the application is hidden by a system menu, or another application is set to run on the foreground.

    In practice, the MIDlet must always be paused when it is hidden. This is especially important in game applications, because the player will probably lose the game if it is not immediately paused when the game is hidden.

    MIDlets can be paused with the isShown() method of the Displayable class or the hideNotify() method of the Canvas class.

    All User Interface (UI) components are inherited from the Displayable class. Thus, the isShown() method can be used to test whether a UI component is visible or not. Repetitive requesting of the isShown() method can be used to get information if the UI component is hidden for some reason. The isShown() method can be used for high-level UI components like Form or List, but in case of low-level UI components that are inherited from Canvas class it is better to use its proprietary hideNotify() method.

    The hideNotify() method is called right after the Canvas object has left the display. Create an auto-pause mechanism inside the hideNotify() method to stop threads, cancel timers, save important values, and so on.

    After the paused session is ready to be continued, the Continue option needs to be shown to the user. It can be, for example, one entry of the main menu of the application.

    Check that:

    *

    The application can be paused when any interruption happens.
    *

    The MIDlet pauses itself automatically if it is hidden.
    *

    It is possible to choose to continue the application after the interruption.
    you can use above information together with info from that thread:
    http://discussion.forum.nokia.com/fo...light=pauseApp

    regards,
    Peter

  3. #3
    Registered User
    Join Date
    Jul 2006
    Posts
    9

    Re: "Task Management" s60 feature and midlet

    Thank you Peter,

    sorry for the answer delay, in was on holidays.
    The links you gave me were very usefull.
    Thanks again.

    H

Similar Threads

  1. Nokia 6101 Locked 2 TMobile Midlet can't access internet...
    By Jason Glass in forum Mobile Java Networking & Messaging & Security
    Replies: 45
    Last Post: 2007-11-14, 02:19
  2. Replies: 2
    Last Post: 2007-02-06, 15:16
  3. Replies: 1
    Last Post: 2006-01-26, 12:57
  4. Wake up a MIDlet via Bluetooth?
    By mgianota in forum Mobile Java General
    Replies: 0
    Last Post: 2005-06-15, 12:00
  5. two issues in s60 MIDP SDK when using MMAPI
    By leting in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2003-06-22, 17:26

Posting Permissions

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