Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User Lindron's Avatar
    Join Date
    May 2008
    Posts
    3
    I created a MIDlet and I created a canvas sub class and used paint method to draw on the screen.

    Now I want to transfer the control back from the Canvas Subclass to the MIDlet.( For closing my MIDlet).

    I created the following classes,
    a MIDlet class,
    a Canvas subclass.(to draw)
    Please help me.

  2. #2
    Registered User shaii's Avatar
    Join Date
    Dec 2004
    Posts
    369
    what exactly is the question? what do you mean transfer control to midlet? the midlet is always there...
    you can close your midlet by calling midlet.notifydestroy and midlet.destroyapp

    BR

  3. #3
    Regular Contributor Spider_Eg's Avatar
    Join Date
    Oct 2005
    Location
    Cairo,Egypt
    Posts
    72
    may be you just need to throw the midlet to you canvas.and use its reference from there to close.
    ex:
    class myMidlet extends MIDlet{

    public void startApp() {
    Display.getDisplay(this).setCurrent(new MyCanvas(this));/*now u can use this referance from your mycanvas to close the application*/
    }
    }

    hope you mean that.
    thanks
    Wael Nabil
    Product Manager
    CITGlobal MOBiDIV
    Egypt.

  4. #4
    Nokia Developer Champion raj_J2ME's Avatar
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,314
    Hi there,

    Just adding the reply to these posts.

    First of all make sure that what you are asking for..
    To transfer the control from canvas to midlet what does it ,mean.See midlet is the only way through which your canvas (or any displayable)is visible.So i hope you are asking for how to display the midlet rather than canvas.

    If it is the case then...think whether midlet is an object of displayable ..i guess no..

    RAJ
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

Similar Threads

  1. GUI Libraries for Java ME
    By erik.hellman in forum Mobile Java Media (Graphics & Sounds)
    Replies: 5
    Last Post: 2008-04-11, 11:56
  2. EXE (Server) / APP (Gui) design and IPC question
    By blackpaw in forum Symbian C++
    Replies: 3
    Last Post: 2008-03-14, 05:34
  3. Engine instantiating the GUI in a new thread
    By savvy in forum Symbian C++
    Replies: 4
    Last Post: 2007-05-15, 15:03
  4. S80 GUI example needed....
    By npipen in forum Symbian User Interface
    Replies: 0
    Last Post: 2006-05-25, 14:50
  5. Nokia active server and Openwave's GUI extensions
    By trasatti in forum WAP Servers
    Replies: 0
    Last Post: 2002-10-15, 14:03

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