Discussion Board

Results 1 to 4 of 4

Hybrid View

  1. #1
    Registered User allstar12345's Avatar
    Join Date
    Jun 2012
    Posts
    24
    Hi,
    ive being trying to add an image to my widget where i tap the image and the app closes.. Im a tad bit stuck but i did find this
    Code:
     <div id="Exit" title="" class="PushableBlock" onclick=
                "_1();">
                    Exit
                </div>
    is that any use ?

  2. #2
    Nokia Developer Expert izinin's Avatar
    Join Date
    Oct 2007
    Posts
    441
    Hi

    In my opinion it does not : all here are a custom specific objects -- function, CSS class , etc.... - there is no any system call in that code fragment.

    By default right soft key is assigned to the "Exit" function, which terminates a running widget. To alter default behavior you need to use setRightSoftkeyLabel()
    Have a look at the article "Managing widgets on mobile devices" about widget life cycle and how to alter it by using widget.onhide, widget.onexit events

    Regards,
    Igor

  3. #3
    Nokia Developer Moderator isalento's Avatar
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    832
    Hi,

    calling widow.close() should do the trick.
    Here is an old thread which has sample code from Jappit:
    http://www.developer.nokia.com/Commu...l=1#post639055

    Br,
    Ilkka

  4. #4
    Registered User allstar12345's Avatar
    Join Date
    Jun 2012
    Posts
    24
    Quote Originally Posted by isalento View Post
    Hi,

    calling widow.close() should do the trick.
    Here is an old thread which has sample code from Jappit:
    http://www.developer.nokia.com/Commu...l=1#post639055

    Br,
    Ilkka
    I tried this and it kinda did nothing :/
    i suppose i can just use the toolbar.

Similar Threads

  1. Exit-command disappearing
    By sarparan in forum Mobile Java General
    Replies: 3
    Last Post: 2009-11-25, 17:04
  2. Series 60 & Command.EXIT
    By dmonk in forum Mobile Java General
    Replies: 10
    Last Post: 2009-10-28, 17:16
  3. Exit Command from Symbian OS
    By Sreeganesh S in forum Mobile Java General
    Replies: 4
    Last Post: 2006-07-26, 23:51
  4. UNDESIRED Exit command key.
    By tektronic in forum Mobile Java General
    Replies: 4
    Last Post: 2005-05-13, 18:27
  5. Getting rid of the Exit command
    By luemkemann in forum Mobile Java General
    Replies: 1
    Last Post: 2003-05-25, 09:08

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