×

Discussion Board

Results 1 to 2 of 2

Hybrid View

  1. #1
    Registered User
    Join Date
    Sep 2005
    Location
    Cambridge, England
    Posts
    9

    Detect Midlet losing Focus

    Hi all,

    I want my MIDlet to close down if it loses focus for any reason. I am developing for a series 60 Nokia (the 6630 in fact). On this phone you can click a key and return to the main menu leaving the Midlet in the background, if this occurs I need the midlet to close. Any suggestions,? I have tried:

    protected void pauseApp()
    {
    exitMIDlet();
    }

    protected void destroyApp( boolean unconditional )
    { }

    public void exitMIDlet()
    {
    destroyApp(true);
    notifyDestroyed();
    }

    And this doesn't do anything, the Midlet stays runnign in the background, what am I doing wrong?

    Ian Bolland

  2. #2
    Registered User
    Join Date
    Oct 2003
    Location
    london, uk
    Posts
    31

    Re: Detect Midlet losing Focus

    Why not try to kill the app in hideNotify() on your canvas?

Similar Threads

  1. calling midlet from midlet throws SecurityException on 6600
    By brianpegan in forum Mobile Java General
    Replies: 3
    Last Post: 2010-10-25, 05:31
  2. Detect PAUSE event in midlet
    By ykhun in forum Mobile Java General
    Replies: 3
    Last Post: 2005-01-03, 20:09
  3. 'Response Unknown' when downloading midlet
    By Weevil in forum Mobile Java General
    Replies: 3
    Last Post: 2004-05-30, 17:01
  4. How to create two instances of midlet
    By marquito99 in forum Mobile Java General
    Replies: 0
    Last Post: 2004-04-30, 01:33
  5. Replies: 1
    Last Post: 2003-03-14, 06:44

Posting Permissions

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