Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor neeraja.nokia's Avatar
    Join Date
    Sep 2008
    Posts
    103
    We developed a simple mobile application using new version of LWUIT. Jar(LWUIT_20081222). Overall performance of application

    is very slow, we took maximum care in designing application like using threads etc, now we doubt the reason for bad

    performance is unable to dispose Forms (Form objects) which are created and no longer required, let us know how to dispose

    forms added to Display, or give us know your valuable suggestion on improving application performance especially LWUIT based

    application.

  2. #2
    Nokia Developer Champion honest_success's Avatar
    Join Date
    Sep 2007
    Posts
    915
    Quote Originally Posted by neeraja.nokia View Post
    We developed a simple mobile application using new version of LWUIT. Jar(LWUIT_20081222). Overall performance of application

    is very slow, we took maximum care in designing application like using threads etc, now we doubt the reason for bad

    performance is unable to dispose Forms (Form objects) which are created and no longer required, let us know how to dispose

    forms added to Display, or give us know your valuable suggestion on improving application performance especially LWUIT based

    application.
    When you change your display from Form to something else. You can use first display.setCurrent(null) then if that Form object is not needed then you can make it null so it can be garbage collected.

  3. #3
    Regular Contributor neeraja.nokia's Avatar
    Join Date
    Sep 2008
    Posts
    103
    Quote Originally Posted by honest_success View Post
    When you change your display from Form to something else. You can use first display.setCurrent(null) then if that Form object is not needed then you can make it null so it can be garbage collected.
    Thank u for replying-----
    But, the method display.setCurrent(<object>) didn't exists in LWUIT.
    I am asking disposing behaviour of LWUIT form.
    Pls, give me ur suggestion---------

  4. #4
    Regular Contributor neeraja.nokia's Avatar
    Join Date
    Sep 2008
    Posts
    103
    Quote Originally Posted by neeraja.nokia View Post
    Thank u for replying-----
    But, the method display.setCurrent(<object>) didn't exists in LWUIT.
    I am asking disposing behaviour of LWUIT form.
    Pls, give me ur suggestion---------
    Any one----------

  5. #5
    Regular Contributor neeraja.nokia's Avatar
    Join Date
    Sep 2008
    Posts
    103
    Any one------

  6. #6
    Registered User jleplat's Avatar
    Join Date
    Jul 2003
    Posts
    26
    There's no need to call setCurrent(), that's a J2ME API call on the Display. You just call show() on your form. The garbage collector should eventually dispose your form.

    I haven't experienced LWUIT being slow. Try deploying one of the demo apps (JAR files) that's part of the download.

    I did see some API call with a null parameter on the LWUIT forums, if you really want to try looking, that forum is below:

    http://forums.java.net/jive/forum.jspa?forumID=139

Similar Threads

  1. Changing display from canvas to form
    By Danack in forum Mobile Java Media (Graphics & Sounds)
    Replies: 5
    Last Post: 2003-05-14, 10:00
  2. CAknForm derived class does not display via navi pane
    By andyesquire in forum Symbian User Interface
    Replies: 1
    Last Post: 2003-03-01, 19:07
  3. Game Developement - Display object on a image background
    By kenkwokkam in forum Mobile Java General
    Replies: 0
    Last Post: 2003-02-08, 14:58
  4. Display question ...
    By kapot in forum Mobile Java General
    Replies: 0
    Last Post: 2002-10-14, 22:09
  5. Nokia 7110 does not display form content properly
    By Nokia_Archive in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 2002-05-16, 02:04

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