Midlet running in the background/foreground

i would like to know if it is possible to have a midlet running on for example a mobile phone - and this midlet runs in the background and as soon as certain parameters meet each other the midlet will be in the foreground again ... also i want to know if its possible to switch between foreground and background - for example with a hotkey.

Unless device specifically supports it then no.

Similar Messages

  • Midlet running in the background

    Hello!
    I am wondering if it is possible to create a java program that runs in the background on a mobile phone. I.E can it run without beeing interuppted by a call or the locking of the key pad.
    Is it possible to let the program run without interfering with the normal functionallity of the phone?

    Hi
    To make a midlet run in the background you have to do as mentioned:
    Display display = Display.getDisplay(this);
    display.setCurrent(null);
    This will make the midlet run in background while you can continue working with other midlets. This strategy was tested with J2MEWTK 2.5 & Black Berry.
    Thanks
    Bruce

  • 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

  • SAFARI: running in the background:

    When I access a website there is an automatic refresh of the content. When I open a different webpage with Safari, then the automatic refresh on the first page stopps! How can I have a webpage be refreshed in background?
    Does Safari download content when it is minimized / not visible?
    When I go back to the first page, then the automatic refresh is not there any more. The function has been de-activated by Safari on Ipad. (On a Firefox on windows there is no such problem). How can I get the same webpage behaviour than before. (I know that reloading the page does the job. But this should be automatic and not from the user)

    The ipad like a lot of other mobile devices use a type of multitasking that differs from multitasking you would find on Mac OS X, Windows or Linux.  Apple chooses to put most background apps on iOS devices in a suspended mode which allows the application to be paused in the background and then respond quickly when brought to the foreground. Some application functions can continue to run in the background.
    Features that are allowed to run in the background are music, location services, airplay, VoIP, push notifications, but it is still up to the developers to make use of this functionality.
    I don't believe Safari is one of the applications that will continue to run in the background.
    Why does Apple choose to do this? Short answer: Battery life and performance.  If app developers were allowed to choose whether or not to have their application to run in the background, bad programmers would quickly kill the performance and battery on the iOS device.
    Some devices such as andriod phones and the blackberry playbook allow broader multi-tasking. The trade off? Andriod phones have task killers, which forces the user to manage their performance and battery life. The playbook comes shipped with a default of using suspended multi-tasking on vs. full multi-tasking - since full multi-tasking would again affect performance and battery life.
    I agree it would be nice if webpages continued to load if Safari is in the background, and maybe this will be added / enabled in the future. I think Apples design provides a better user experience and still allows most of the functions to run in the background that need to.  (I don't need a movie to play in the background or game).
    My guess would be Safari doesn't allow background use right not because of issues like auto-refresh pages, which again would affect performance and battery.

  • HR Report running in the Background

    Hi everyone,
       I have a HR report which runs in the background (every 2 weeks) using a variant. When I execute the report using the same variant in the background using the menu option, it works fine( for that matter, even in the foreground) , but when it runs on the scheduler, the report gives totally different results. What could be the reason? This report does use the Logical Database.
    Your answer will be greatly appreciated.
    Thanks,
    Reeta

    Hi
    what i see from your point is that you are putting the report in background from the selection screen only and making it a periodic   one with the same variant.even if u r using dynamic variants in that case also when the report will runs after two weeks it will take the values of the two weeks back instead of taking it in correctly
    so it would be better if you can schedule the program from sm36 with program name and variant ,then it will work perfectly fine,and logical data bases pnp and all work perfectly fine in background,
    in case i understood ur point wrongly then please let me know

  • My IPhone4 is secretly using alot of data even though I have double tapped Home button and closed all the apps running in the background.

    My Iphone4 is secretly using alot of data even after I have double tapped the home button and closed all the apps running in the background.
    This just started happening 3 days ago.
    When im out of home, the phone drains battery REALLY FAST, I lose 6% battery in 5 minutes.
    The phone also heats up and feels very warm after a few minutes.
    When I turn the data plan off, it becomes normal again, like I lose 1% every 30minutes even while listening to mp3.
    I can conclude that its secretly using the 3G at an alarming rate which causes the battery to die so quickly
    I have uploaded 2 pictures showing what happens before and after I turn on my WIFI.
    Notice that the ping spikes like crazy on my home network once I turn on my WIFI on my IP4
    WIFI OFF:
    WIFI ON:
    I hope someone can assist me with this!
    Thanks!!

    chuuburg wrote:
    My Iphone4 is secretly using alot of data even after I have double tapped the home button and closed all the apps running in the background.
    This just started happening 3 days ago.
    There is a common misconception that closing an app on the Quick Launch screen (it's real name) also kills the app's background process. This is not the case. First, all built in apps (mail, contacts, calendar, game center, notes, reminders, Genius, Photo Stream, etc) continue running their background processes even if killed in the Quick Launch screen. For apps from the App Store killing the foreground process also gives the app the option of killing its background process, but it doesn't have to. In addition, any app that has Notifications enabled can restart its background process if it receives a Notification.
    iOS 7 gives the user more control over background processes; you can selectively allow or deny any app to run in background. As you apparently have not upgraded this option is not available to you.
    As Chris has already told you, there's an app on your phone that is stuck in a loop. As you discovered killing foreground processes did not resolve the problem. One trick that sometimes resolves this is to let the battery run down until the phone shuts off and will not restart. Then charge to 100%.

  • How do I find out what applications are running in the background

    I have a 2008 iMac with 2GB memory.  How do I find out what programs are running in the background?  I am going to buy a new iMac before the end of the year to replace this one.  When I looked at Activity Monitor it shows 1.8Gb used but doesn't tell all the programs running.

    open activity monitor [if it doesnt launch click winders>Activity Monitor]. then it'll show all proceses

  • Adobe Bridge not running in the background

    I have bridge setup to load and run in the background when I start windows.  However it doesn't run in the background but launches and runs as normal.the icon does not load in the control panel as does other programs that load and run in the background. Running a 64bit windows 7 machine

    Ashutosh.Nigam wrote:
    If you want to  start Br at login, Follow below mentioned steps:
    In Bridge , choose Edit > Preferences (for Windows) or Adobe Bridge > Preferences (for Mac OS).
    Choose Advanced.
    Select Start Bridge At Login.
    You can disable this option at any time, Hope this helps.
    I don't have CC but others say the standard option is not there.  Can you confirm it is?

  • When I click on a new link, it opens a whole new firefox instead of using my default which is running in the background

    I have firefox as my default browser. Anytime I click on an email or search for something, instead of opening my default browser, firefox loads a new firefox page. It is a blank page just as if I had never had one. It has nothing on it except how you would start out before you set up your tabs and history etc. My default firefox is still there running in the background but I must click on it and manually put in the link I was trying to open.
    Any suggestions.

    Some added toolbar and anti-virus add-ons are known to cause
    Firefox issues. '''Disable All of them.'''
    Start '''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Firefox in Safe Mode]''' {web Link} by holding down the '''<Shift ''(Mac Options)'' >''' key, and then starting Firefox. Is the problem still there?

  • Can the width of a report that has been run in the background be increased?

    Hello Experts,
    How can I increase the width of a report that I have run in the background so that it does not wrap text to the next line?
    I have been running the same HR report successfully in the background for many months.  Today I ran it with the same parameters that I've always used and when I retrieve it from my Own Job Spool - System | Own Spool Request | Display Contents the last field is wrapped to the next line.
    Thanks.
    Regards,
    Jeanette

    Jeanette,
    Thereu2019s another possibility if Tedu2019s suggestion doesnu2019t work. When you look at your spool requests, thereu2019s an icon on the toolbar next to the eyeglasses that looks like a yellow rectangular callout. Itu2019s called u201CDisplay in Maximum Widthu201D. Select the Spool no. to display and then press this icon. Shift + F4 is the shortcut.
    Regards,
    Howard

  • How can I delete the apps that run in the background in iOS 7

    HOw can I delete the apps running I the background in the new Ios7. Earlier all that I had to do was to press continuously and then could delete when the   Mark would appear. now I am unable to do it.
    AAlso, I am unable to save a photograph as a wall paper.

    Thanks so much. This solved my problem.
    Can you tell me how to save a photograph as a wall paper on the new IOS 7
    Thanks

  • HT1365 Hi can anyone help with this issue regarding my wireless magic mouse? When im on google chrome and scrolling down the page i always have youtube running in the background but the audio cuts/spits/pops can anyone help me with this?

    Hi can anyone help with this issue regarding my wireless magic mouse? When im on google chrome and scrolling down the page i always have youtube running in the background but the audio cuts/spits/pops can anyone help me with this?

    The figures you mention only make sense on your intranet.  Are you still using the same wireless router.  The verizon one is somewhat limited as far as max wireless-n performace.  For one thing it only has a 2.4 radio.   I like many people who wanted wireless-n performance before they even added a wireless-n gigabit router, have my own handling my wireless-n network.

  • Looking for a drum loop app that will run in the background. What are you using?

    Looking for a drum loop app that will run in the background. Suggestions? What are you using? I tried Loopseque and I like it, but I can't make it run once I switch apps. Help please.

        That's definitely strange, kzmidge. I want a working phone in your hands though. I noticed you mentioned you received the suggestion to complete a reset. Did you already do that? Is it working again? Are you receiving an error message?
    If you hesitated a little longer to complete the reset, you can try to place your phone into Safe Mode http://vz.to/rxg0ii and see if you can access mobile sites from your browser. This mode will stop 3rd party applications from running, so you won't be able to use the apps you mentioned but we may be able to narrow down the trouble in Safe Mode. If the mobile sites work, that means the trouble may be in a recently downloaded application and you may be able to avoid the reset my uninstalling some of your more recently installed applications. If it's still giving you trouble, the reset http://vz.to/18wzOCi is the next best step.
    JenniferH_VZW
    Follow us on Twitter www.twitter.com/vzwsupport

  • Page breaks appear in the spool output of report when run in the background

    Hi All,
    Report is using fm 'REUSE_ALV_GRID_DISPLAY' to display the report. parameters passed to this fm for display are :it_fieldcat,is_layout,it_events,t_outtab.
    Page breaks appear in the spool output when report is run in the background.These page breaks needs to be removed. When executed in the background, the excel extract should be the same as if pulling directly from the report itself.
    How to remove the page breaks in background?
    Thanks & Regards,
    Abhishek Singh

    Hi
    You can use the below code , which the reprt run in background. If you run the report in background thenyou need to use  'REUSE_ALV_LIST_DISPLAY'
    if sy-batch = ' '.
    call 'REUSE_ALV_GRID_DISPLAY'.
    else.
    call 'REUSE_ALV_LIST_DISPLAY'.
    endif.
    if you are using OO alv then write this code..
    CALL METHOD cl_gui_alv_grid=>offline
    RECEIVING e_offline = off.
    IF off IS INITIAL.
    CREATE OBJECT g_custom_container
    EXPORTING container_name = g_container.
    ENDIF.
    Regards

  • Can a java program be run in the background?

    Hi all,
    Can a java program be run in the background without the user being aware of it? I need to make a program that continuosly monitors a pc at regular intervals and runs at all time. It should be hidden(shouldn't display on the screen while running) from the user, and also, can it be run as a system file so that even if a user checks he/she would think of it as a system file?

    I'm the administrator of all the computers. Then as I said there are commercial applications that do that.
    Presumably you expect a problem now. And implementing an acceptable solution is going to take you months. Because not only need to 'hide' the application, you also need to set up all the monitoring and logging capability. And the first will require quite a bit of JNI work along with testing (in particular as it could interfer with existing applications on the users computers.)
    I need to
    install the software in all the machines and i want
    that the users who use the machine should not be able
    to close the program through the task manager. If the users have admin rights then they can terminate a windows service.
    And if they don't have admin rights then you can simply turn off the ability to install anything.
    I want
    to know what the resources of the computers are and
    that if anyone has added a resource to it or
    not(attaching a flash usb thumbdrive etc). Lots of JNI.

Maybe you are looking for

  • Conecting Mini DVI to HDMI Video Cable with my mac book pro

    Hi. I just bought Mini DVI to HDMI Video Cable to connect my mac book pro to my HD TV. I connected the cables and put my TV on HDMI input. On the TV it appears the Snow Leopard Background but I can't see my desktop or the icons. What should I do to v

  • Password protected file issue

    I downloaded a password protected file that requires Acrobat reader 10. iOS version cannot seem to open. Any suggestions? I'd like to be able to use the text highlight and note features in the iOS version.

  • Error while starting SAP from mmc Console

    Hi, I am trying to start SAP system through sapmmc, by right clicking on the System and pressing start. But getting this unknown error: Start Failed: 2 NIECONN_REFUSED (WSAETIMEOUT: Connection timed out), NRawConnect failedin plugin_fopen() Checking

  • OBIEE11g, BI Apps 7.9.6 for EBS - Consignment Inventory Report details

    Hi, If anyone worked on BI Apps for EBS, can you please tell me the details of Consignment Inventory Report? I need to know the columns names and how calculations done on Consignment Inventory Report. Any information on this will be highly appreciate

  • How to block contacts

    I just hooked up a itouch for my 6yr old. Put her on my account but set up a email so she could facetime her cousins. How do I block my contacts from appearing on her itouch??