The application does not use the  screen and run in the background

Hi
I have downloaded a package of j2me Midlet
from [link] here [link]
and try to reuse the code
but I get the following error when running the code:-
The application does not use the screen and run in the background
I think the error into one of these two classes
package main;
import javax.microedition.midlet.*;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import javax.microedition.media.Manager;
import javax.microedition.media.MediaException;
import javax.microedition.media.Player;
import java.io.IOException;
import java.io.InputStream;
public class MainMidlet extends MIDlet implements CommandListener {
    private SSGameCanvas gameCanvas ;
    private Command exitCommand ;
    private Player player = null;
    public void startApp() {
  try {
       //   create new game thread
          gameCanvas = new SSGameCanvas();
          gameCanvas.start(); // start game thread
          exitCommand = new Command("Exit",Command.EXIT,1);
          gameCanvas.addCommand(exitCommand);
          gameCanvas.setCommandListener(this);
            Display.getDisplay(this).setCurrent(gameCanvas);
   catch (java.io.IOException e)
            e.printStackTrace();
        try {
            // start sounds
            InputStream in = getClass().getResourceAsStream("/resource/startfly.wav");
            player = Manager.createPlayer(in,"audio/x-wav");
            player.setLoopCount(1);
            player.start();
        catch (MediaException ex)
            ex.printStackTrace();
         catch (IOException ex)
            ex.printStackTrace();
    public void pauseApp() {
    public void destroyApp(boolean unconditional) {
        if (player != null) {
            player.close();
        System.gc();
  public void commandAction(Command command, Displayable displayable) {
       if (command == exitCommand)
             destroyApp(true);
             notifyDestroyed();
package main;
import java.io.IOException;
import javax.microedition.lcdui.*;
import javax.microedition.lcdui.game.*;
public class SSGameCanvas extends GameCanvas implements Runnable {
    protected GameManager gameManager;
    protected boolean running;
    private int tick=0;
    private static int WIDTH;
    private static int HEIGHT;
    private int mDelay = 20;
    Form mainForm;
    Display display;
    //private int MaxTime;
    public SSGameCanvas() throws IOException{
        super(true);
        gameManager = new GameManager(5,5,getHeight()-10,getWidth()-10,this);
    public void start() {
            this.running = true;
            Thread t = new Thread(this);
            t.start();
    public void stop() {
        running = false;
    public void render(Graphics g) {
        WIDTH = getWidth();
        HEIGHT = getHeight();
        // Clear the Canvas.
        g.setColor(0, 0, 50);
        g.fillRect(0,0,WIDTH-1,HEIGHT-1);
        // draw border
        g.setColor(200,0,0);
        g.drawRect(0,0,WIDTH-1,HEIGHT-1);
        // draw game canvas
        gameManager.paint(g);
    public void run() {
        while (running) {
            // draw graphics
            render(getGraphics());
            // advance to next graphics
            advance(tick++);
            // display
            flushGraphics();
            try { Thread.sleep(mDelay); }
            catch (InterruptedException ie) {}
    public void advance(int ticks) {
        // advance to next game canvas
        gameManager.advance(ticks);
        this.paint(getGraphics());
}Edited by: VANPERSIE on Jul 10, 2012 12:26 PM

Hi Andi,
Thanks for your reply.
Yes, I have waited for a while and the result doesn't change.
The Porblem here is the application is seen started in visual administrator.Only restart brings up the page back.
Can you please suggest anything.
Thanks and regards
Nagaraj

Similar Messages

  • I am trying to print out information on a Google Maps page. I have the print setting on fit to width but the page does not print that way and some of the page that would normally show on page 2 is missing.

    The page prints out fine on Internet Explorer, but not on Firefox. 2 pages are supposed to print out but only 1 prints. Also it does not fit to width even though that's the setting.

    That file could be set as a Launch Agent or Daemon in your ~/Library or /Library, You could try to look for it or Safeboot your computer and then empty the trash. Safebooting disables Launch Agents/Daemon and Third Party Kernal extensions. Here's the article to Safeboot OS X: What is Safe Boot, Safe Mode? - Apple Support

  • When I try to quit Firefox, the open page closes, but the application does not. Must Force Quit to close the application.

    I am using a Macbook running 10.6.8 with Firefox version 9.0.1. Recently, when trying to close the Firefox application, the open page disappears, but the application stays open, but is unresponsive. I must force Quit the application at this point. If I try to work in the Menu Bar I get the spinning beach ball until I do the Force Quit. This isn't right and is making me nervous about the reliability of this browser.

    Hi swf13245-
    Is Firefox working ok up until it freezes when you try to close it? I found an article on how to troubleshoot Firefox when it hangs- but this typically is for users who have trouble while using the application as opposed to just when shutting it down:
    [[Firefox hangs]]
    Hope that helps.

  • TS4085 the image does not fill entire screen of iPad, therefore not the entire TV screen.  Why?

    When I try to mirror a video from my iPad to TV using Apple TV, the video does not fill entire screen of iPad nor the entire screen of my TV,  Is there a way to strech the image to fit screen(s)?

    Welcome to the Apple Community.
    There are two factors in play here. Firstly the iPad screen is 4:3, your TV is 16:9, so when mirroring the mirrored iPad screen is never going to fill the TV screen. If on top of that, whatever you are watching doesn't fill the iPad screen then that too will be reflected in what is seen in the mirrored image.
    You cannot stretch this using the Apple TV or iPad controls, but your TV may have a setting you can use. Generally speaking though this will distort the image and you would likely be best leaving it alone.

  • I purchased QT Pro, and the manual indicates that you can export to Windows Media.  However, the application does not give me that option.  Am I missing something?

    How can I export a movie to Windows Media using QT Pro?  Upgraded QT7.7 to Pro for this reason based on the graphic in the QT manual that indicates Windows Media is an export selection.

    In my original e-mail I actually pasted a screen print of the drop-down menu in the manual.  However, here is the link:
    http://images.apple.com/quicktime/pdf/QuickTime7_User_Guide.pdf
    Go to section 4:  Exporting Files with Quicktime Pro.  Page 42 has an illustration of the menu choices.  The text states “To see the list of file formats available for a movie open in QuickTime Player, choose File > Export and browse the list of file format choices in the Export pop-up menu.”  In the illustration of the drop-down menu, the selection “Movie to Windows Media” is listed between “Movie to QuickTime Movie” and “Sound to AIFF.”  However, the actual application does not provide this option.  After reading the support threads (after my purchase), users agree that  WMV is not supported.  However, the Apple user manual clearly displays this option and it was this documentation that led me to purchase the QT Pro upgrade.  If the format is not supported, why is it listed in the documentation?
    I feel that this illustration is misleading, and I’m requesting a refund based on the fact the application does not support an option illustrated in Apple’s published manual.
    If this e-mail supports attachments, the attached file is the pdf version I saved of this manual.
    Curt

  • [svn:fx-trunk] 16929: Add a [Mixin] class that will register the required class aliases in the event the mxml compiler generation   [RemoteClass(alias="")] code is not called because an application does not use the Flex UI framework .

    Revision: 16929
    Revision: 16929
    Author:   [email protected]
    Date:     2010-07-15 07:38:44 -0700 (Thu, 15 Jul 2010)
    Log Message:
    Add a class that will register the required class aliases in the event the mxml compiler generation  [RemoteClass(alias="")] code is not called because an application does not use the Flex UI framework.
    Add a reference to this class in the RPCClasses file so it always gets loaded.
    QE notes: Need a remoting and messaging regression test that doesn't use Flex UI.
    Bugs: Watson bug 2638788
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/rpc/src/RPCClasses.as
    Added Paths:
        flex/sdk/trunk/frameworks/projects/rpc/src/mx/utils/RpcClassAliasInitializer.as

    Great exercise to document the problem like this.  It got me thinking about how an app with modules would be different from an app that does not use modules.  Solution: I moved the dummy reference of PersonPhotoView out to the main application file (as opposed to being inside the module) and it worked.  I've probably been lucky not to have experienced this problem earlier, because for most other entities I have an instance attached to my model which is linked / compiled with the main application.

  • I'm trying to use idvd '09 version 7.1.2 on a powerbook running lion 10.7.2, the system does not locate any themes and therefore will not boot up, any suggestions?

    i'm trying to use idvd '09 version 7.1.2 on a powerbook running lion 10.7.2, the system does not locate any themes and therefore will not boot up, any suggestions?

    Hi
    May be help here
    iDVD Themes
    iDVD 1 to 7.0.4
    Root level = Macintosh HD / Library / Application Support / iDVD / Themes
    or
    Macintosh HD / USERS / Your name or login identity / Library / Application Support / iDVD / Installed Themes
    iDVD 7.1 (from F Shippey )
    The iDVD 7 themes are part of the iDVD 7 application package.
    iDVD - ctrl-click Show content of package
    Resources / Plug-ins/ - and here they are
    See if You can restore them manually.
    Yours Bengt W

  • HT1941 Hi i have recently updated my version of iTunes in order to sync music from my macbook air to my new ipod shuffle. After a successful installation the application does not launch and I am unable to oepn iTunes of access my music! Someone please hel

    Hi,
    I have recently updated my iTunes to the latest version in order to sync music onto my new ipod shuffle. However after a successful installation the application does not launch or open? There are no error messages. The application is just unresponsive.
    I have already checked the compatibility with Safari, my operating system and checked my firewall is not blocking it - all is fine.
    Does anyone have any other resolutions?
    Many thanks

    Hi Carolyn,
    Thank you for your time and response. The trouble is I am unable to launch iTunes? I have restarted my macbook air a number of times to try and initiate the application but the issue persists and the application remains unresponsive. Will not launch?
    Thanks

  • HT1199 I have a desktop mac operating on Mac OSx 10.4.11 and the system does not recognize my iphone and I am unable to upgrade to the newest itunes version. What do I need to do?

    I have a desktop mac operating on Mac OSx 10.4.11 and the system does not recognize my iphone and I am unable to upgrade to the newest itunes version. What do I need to do?

    Backup first
    It is always best to have a full bootable backup before you upgrade. If you fail to do this you will be unable to return to this OS if you decide you don't like the new OS. Also there is a slight chance that an install could lose everything on the Mac. The backup must be to an external hard disk. Preferably use Carbon Copy Cloner to make a bootable backup of the whole disk.
    Erase before the install
    Once you have a bootable backup on an external disk it is best to erase the internal disk with the new installer DVD before you install.
    During the install
    Preferably do not import any data or preferences from earlier OSs during the install process as this can reintroduce bugs.
    OS numbers and names
    OS X 10.4.x - Tiger
    OS X 10.5.x - Leopard
    OS X 10.6.x - Snow Leopard
    OS X 10.7.x - Lion
    OS X 10.8.x - Mountain Lion
    More about Macs
    The Apple History site has specifications for every Mac ever produced: http://www.apple-history.com/
    Upgrade to Leopard
    Those wishing to upgrade to Leopard should be aware that install disks can be expensive unless you contact Apple. Details: http://lowendmac.com/deals/best-os-x-leopard-prices.html Standard Leopard installers impose several hardware limitations including speed and RAM size but all these restrictions can be overcome. Google for details. Leopard works well at 500 MHz with 1 GB of RAM and many happy users have less than this.
    Upgrade beyond Leopard
    OSs beyond OS X 10.5.8 require an Intel processor. If in doubt check this: Click the apple at the top left of your screen and select 'About this Mac'. This will give you your OS number. Then click 'More Info' to see which processor you have. If it says PowerPC you cannot upgrade to Snow Leopard and above. If you have an Intel Mac it is well worth upgrading to Snow Leopard now and then considering other options after that. You can buy Snow Leopard here: http://store.apple.com/us/product/MC573Z/A
    Upgrade beyond Snow Leopard
    Information about upgrading Snow Leopard to Lion or Mountain Lion: http://store.apple.com/us/product/MD256Z/A
    Important
    Check that your Mac complies with any requirements. If you are not in the US you should use the Change Country link at the bottom of Apple pages.

  • Firefox does not appear on screen when started from the start menu, but task manager says the process is running

    Firefox does not appear on screen when started from the start menu or the shortcuts, but task manager says the process is running.

    No - I get the message basically saying "Can't run program while Firefox is running. Please close down Firefox & try again".
    I rebooted my computer and it all works now - but that's weird it was happening before. Kinda weirded out that it happened at all.
    To avoid that happening again, I still wanna know what to do to avoid it or fix it for next time. Thanks

  • I recently had my account expire, and need to utilize the trial to finish a project. Even though my account says 'free trial' the applications will not open. How do I get the APP to recognize that I'm in trial and not expired?

    I recently had my account expire, and need to utilize the trial to finish a project. Even though my account says 'free trial' the applications will not open. How do I get the APP to recognize that I'm in trial and not expired?

    I had a year long CC membership that expired at the beginning of the October.
    After realizing that, I attempted to start a free trial of photoshop to work on a project. My Adobe account states that i'm on a trial, but my (Mac) dashboard CC app won't allow me to start the program. I have reinstalled both Creative Cloud and Photoshop CC but still get this message.

  • I am trying to manage my "Location Services" on my iTouch but the device does not allow me to make changes. The screen is muted indicating that changes cannot be made. Anyone experience something similar?

    I am trying to manage my "Location Services" on my iTouch but the device does not allow me to make changes. The screen is grayed-out indicating that changes cannot be made. Anyone experience something similar?

    Do you have any Restictions set? (Settings>General>Restrictions)

  • When I import my photos from my iPhone 4S into iPhoto the location does not appear.  I have to open the info button on the photo click "photo place" then "find on map" and then the location appears.  How to I get the location to appear automatically?

    When I import my photos from my iPhone 4S into iPhoto the location does not appear.  I have to open the info button on the photo click "photo place" then "find on map" and then the location appears. How to I get the location to appear automatically when I import my photos from my iPhone?

    in your iPhoto preferences is look up location set to "automaticaly"?
    LN

  • Unable to email photos, receive a statement that the server does not recognize my username and or password, have checked multiple times that these are correct

    I am unable to e-mail  photos, receive a statement saying that the werever does not recognize my username and or password. I have checked multiple times and these are correct.

    The box comes up that says "server does not recognize username or password".
    That error message usually will pop up, when there is a conflict between the "From" setting for the mail account you are sending from and the selected outgoing mail server. Probably the outgoing Mail server is receiving a user name and password it does not understand. When the mail returns unsent, do you see the "Try again" panel with the option to select a different outgoing mail server?
    If you do not see this panel, change the Mail "Preferences > General" to "If Outgoing server is unavailable: Show a list of alternate servers". This way, you will know, which server Mail is trying to send from.
    Have you tried to set "From"  pop-up menu to one of your other email addresses?  If that works, change your settings in Mail to always send from this address. You can set this option in the Mail "Preferences > Composing: Send New Messages from". I have my "Send New Messages from" set to "iCloud". That is working best for me with iPhoto.

  • Why does the installation respectively the application does not adobe photoshop 13?

    Why does the installation respectively the application does not adobe photoshop 13?

    Photoshop or Photoshop Elements?
    Please read this (in particular the section titled "Supply pertinent information for quicker answers"):
    http://forums.adobe.com/docs/DOC-2325

Maybe you are looking for

  • Depr calculation- period control

    Hello, I have an issue with depreciation calculation. For two depr area 01,15 I choose the same depr. key(with reducing balance method) For these areas have next depr value: Area    Period  Value 01   1  100 01   2   90 01  3  80 02  1 100 02  2 100

  • Runtime error while executing CAT2

    Hi All, My user is executing the CAT2 as below: Going to CAT2 Given profile as Z001 which allows the multiple employees its is giving another screen as "Personal number selection for fast data entry" screen Click on Further selections button Selectin

  • Can't Convert Word File Containing Lotus Tables

    I'm having an ongoing problem converting a specific type of Word document to .pdf format.  My OS is Windows 7 Pro and I'm using Office/word 2007 and Acrobat 9 Standard with current updates, etc.  Pretty much the only thing I use Acrobat for is straig

  • Infragistics gridview control sorts in Google Chrome and Firefox but not in IE11

    I have an Infragistics webdatagrid control on my website homepage that displays few information in form of rows. The code is as follows <asp:Panel ID="Panel" runat="server"> <ig:WebDataGrid ID="UltraWebGrid" runat="server" oninitializerow="UltraWebGr

  • Which table or structure it will exists MENGV15

    which table or structure it will exists MENGV15