×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Dec 2008
    Posts
    3

    image full screen

    hello, i have a 1 problem whit the image.. excuse my low level english but i'm italian.. i can display a full screen image??

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: image full screen

    Buongiorno!

    I think you want Canvas.setFullScreenMode() in the JavaDocs.

    Note that this only works on devices with MIDP2.

    Cheers,
    Graham.

  3. #3
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: image full screen

    Hi,
    There can be two queries related to you post -
    @ Are you talking about to draw the image in full screen..
    If you want to display the image in full screen then you have to take that image of the screen size..ob the mobile..then just use -

    Graphics.drawImage(image_name,0,0,0);
    The your image will be in the full screen...
    for more query, write here,

    @ Are you talking about to show the full screen..
    I mean to say is that by default the device excludes some pixel..and does not display the complete screen..
    in this case you can use
    setFullScreenMode(true);
    for more query, write here,


    I hope that these lines can help you in any means,
    Thanks,
    Last edited by raj_J2ME; 2008-12-02 at 11:40. Reason: spell
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  4. #4
    Registered User
    Join Date
    Dec 2008
    Posts
    3

    Re: image full screen

    tanks however i should make full screen only the image and not other object... will continue to operate exitcommand and okcommand?
    i use s60 edition... nokia n81

  5. #5
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: image full screen

    Hi,
    That means you want to draw the image as the full screen..correct.
    While you will look at the link
    http://www.forum.nokia.com/devices/N81
    Then you will find that the screen size is 240x320..ok
    @ Then take an image of the same size i.e.240x320
    @ Then write the lines as -
    //int var screen_width
    screen_width = 240;
    //int var screen_height
    screen_height = 320;
    then
    @ write this line
    setFullScreenMode(true);
    @ Then draw your image
    Graphics.drawImage(image_name,0,0,0);

    Thats all you have to do,
    Are these lines helpful to you,
    Thanks,
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  6. #6
    Registered User
    Join Date
    Dec 2008
    Posts
    3

    Re: image full screen

    but i extended MIDlet and not Canvas

  7. #7
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: image full screen

    You will need at least two classes... a MIDlet and a Canvas.

  8. #8
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: image full screen

    Hi Morbidick,
    Well for running the mobile application you have to define (In custom application) the two classes called as - (Though simple demo can be run through midlet only.)

    @
    Class AnyClass extends MIDlet
    {



    }
    @
    Class AnyClass1 extends Canvas
    {



    }

    all the information about the midlet class and its purpose can be found here.
    What is a MIDlet?

    What is a MIDlet?

    The Mobile Information Device Profile (MIDP) is a set of Java APIs targeted at mobile information devices such as mobile phones and entry-level palmtop devices. A MIDlet is a MIDP application. Throughout this article, the terms MIDlet and MID application are used interchangeably. MIDlets form the building blocks of the Java 2 Platform, Micro Edition (J2ME) runtime environment.

    The MIDlet is designed to be run and controlled by the application manager in the K Virtual Machine (KVM), a stripped-down version of the Java Virtual Machine designed to run on mobile devices. The javax.microedition.midlet.MIDlet class acts as an interface between the MIDlet and the application manager. The methods of this class allow the application manager to create, start, pause, and destroy a MIDlet.

    J2ME applications must extend the javax.microedition.midlet.MIDlet class, which provides a framework for the following actions:

    * To allow the application manager to control the MIDlet by notifying and requesting MIDlet state changes.

    * To allow the MIDlet to retrieve properties from the application descriptor, a registry of applications maintained by the application manager.

    MIDlet states

    A MIDlet can be in various states in its lifetime. These states allow the application manager to manage the activities of multiple MIDlets within a runtime environment. It can select which MIDlets are active at a given time by starting and pausing them individually. The application manager also maintains the state of the MIDlet. A MIDlet can be in any of the following states:

    * Active: The MIDlet enters an active state at startup and may acquire some resources.
    * Paused: In the paused state, the MIDlet releases shared resources and becomes quiescent.
    * Destroy: This is the MIDlet's termination phase. The terminating MIDlet must release all resources and save any persistent state with the application manager.

    State implementations: Moving from state to state

    The application manager invokes certain methods on the MIDlet to change states. The MIDlet implements these methods to update its internal activities and resource usage as directed by the application manager:

    * startApp(): This method signals the MIDlet that it has entered an active state. It consists of the initialization procedures for setting up of an interactive display environment for the MIDlet.

    * pauseApp(): This method signals the MIDlet to stop and enter the paused state.

    * destroyApp(): This method signals the MIDlet to terminate and enter the destroyed state.

    The MIDlet can initiate some state changes itself and notifies the application manager of those state changes by invoking one of these methods:

    * notifyDestroyed(): This method is used by a MIDlet to notify the application manager that it has entered into the destroyed state.

    * notifyPaused(): This method notifies the application manager that the MIDlet does not want to be active and has entered the paused state.

    * resumeRequest(): This method provides a MIDlet with a mechanism to indicate that it is interested in entering the active state. Calls to this method can be used by the application manager to determine which applications to move to the active state. When the application manager decides to activate a MIDlet, it will call that MIDlet's startApp() method.

    The MIDlet is provided with a mechanism to retrieve named properties from the application manager: its getAppProperty() method. These properties, provided as part of the MIDlet deployment, are retrieved from the combination of the application descriptor file and the manifest.

    If a runtime exception occurs during startApp() or pauseApp(), the MIDlet will be destroyed immediately.
    Last edited by raj_J2ME; 2008-12-04 at 04:12. Reason: spell
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  9. #9
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: image full screen

    Hi,
    @
    Without the canvas demo is as -
    import javax.microedition.lcdui.Display;
    import javax.microedition.lcdui.Form;
    import javax.microedition.midlet.MIDlet;
    import javax.microedition.midlet.MIDletStateChangeException;
    public class HelloJ2ME_a1 extends MIDlet
    {
    private Display mDisplay;
    private Form mForm;
    protected void startApp() throws MIDletStateChangeException
    {
    if(mForm == null)
    {
    // Creo il Form dove inserire il messaggio (questo puo' essere pensato come ad un JFrame)
    mForm = new Form("Hello J2ME !!!");

    // Ottengo un Display per la MIDlet
    mDisplay = Display.getDisplay(this);
    }
    // Imposto il Form corrente nel Display
    mDisplay.setCurrent(mForm);
    }
    protected void pauseApp()
    {
    }
    protected void destroyApp(boolean arg0) throws MIDletStateChangeException
    {
    // Notifico alla JVM della morte della MIDlet (viene chiamato il Garbage Collector)
    this.notifyDestroyed();
    }
    }
    @
    With the canvas and midlet it is as -
    Go through the link, you will be having the code..then you will be able to understand it.
    http://j2medevcorner.wordpress.com/2...to-deployment/

    For more query you can ask again,
    Thanks,
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

Similar Threads

  1. E90 OpenGL full screen update performance
    By samulikekki in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2008-02-15, 12:37
  2. Replies: 6
    Last Post: 2008-02-13, 12:30
  3. Full Screen Debug on ALL Carbide c++ versions in Windows XP
    By jimgilmour1 in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 0
    Last Post: 2007-04-27, 18:33
  4. Can't return display to full screen??
    By danparks in forum Symbian User Interface
    Replies: 2
    Last Post: 2005-10-10, 05:32
  5. Full Screen Mode GPRS Connection Icon
    By murid in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2005-08-05, 14:46

Posting Permissions

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