How to stop a background process/thread?

Hello

Our previous BlackBerry app is made by someone else and now we want to make a few changes to it.

The problem I'm working now on, it's that there's no way you can close the application, because the menu button has been disabled (he always kept running in the background). This combined with the fact that the application creates a new thread, means that when you watched on all running programs, you had 2 process that you can not stop.

Since then I have solved the problem with the key menu and now I can stop the main application, but the background thread keeps appearing as a running process (when I choose to change to another application).

So, after this story, my question is:

How can you stop a process in the background?

In my case I want to stop the background process that the application has started at some point and will not close now...

Thank you!

Welcome on the support forums.

You can stop the background process using world events.

set up a globaleventlistener in the background process and set a terminate event.

or you might mark it as a module of the system, it would not appear in the Task Manager, then.

Tags: BlackBerry Developers

Similar Questions

  • How to stop automatic reformatting processes ViewRowImpl.java file?

    Hi all

    I use JDeveloper 11.1.1.4.

    I am facing a strange problem,

    I have a view with 'ViewRowImpl.java' for something internal logical object.

    Now I will create a "Transitional" attribute in the object View. After creating the "Transitional" attribute all ViewRowImpl java codes are changed and reformatted automatically.

    My question how to stop automatic reformatting processes ViewRowImpl? Is this possible in Jdeveloper 11.1.1.4.

    Thank you

    David.

    One more piece of information to add to Joel Ramamoorthy-Oracle:

    to avoid this problem, you must:

    (a) define a style (Tools-> preferences-> Code-> CodeStyle editor) that force you everyone to use

    (b) add a backup action reformat (Tools-> preferences-> Code-> SaveActions editor)

    (c) enable reformat code"block"when pasting (Tools-> preferences-> Code Editor).

    After that, the code that gets checked is always in the format and regenerate the code of a file impl is not a problem.

    Timo

  • How to stop all background activity?

    is it possible, in addition to airplane mode, turning off all the activities background for my phone stops emitting these high emf spikes every two seconds? it emits huge peaks of the emf every two seconds, even if I do not use it.

    I turned off a large part of the services as possible already. I guess it's to keep checking for stuff put to date or for cell towers or something else?

    So basically I guess that what I want is to have my phone act as in airplane mode with the ability to receive calls.

    all I need is to be able to call / text and receive calls / texts. I don't have any other apps, or whatever.

    Thank you.

    Settings - cell - data cell - Off

    You can also try to turn off apps in Settings - General - background app refresh and see the results.

    I would start by all social media applications.

  • How to stop the background music?

    Installed firefox. During navigation it is background music nonstop. SOP how this music

    Try to delete the sessionstore.js file and files possible sessionstore-# .js with a number and sessionstore.bak in the Firefox profile folder.

    Delete sessionstore.js will cause App Tabs and groups of tabs open and closed tabs (back) to get lost and you will have to re-create them (take note or bookmarks if possible).

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode without failure.
  • How to stop the background web resizing when the zoom in an out?

    IV adds a fill background (tried it on the master page and the actual page), but when I view it in the browser and try to zoom in one off the bottom evolves with the content?

    IV done it before, but can't find a way to do it again?

    See you soon

    You will need to change the type of fill to full size; the other two settings both try to fill the entire width of the browser

  • How to stop the command line defragmentation Vista 64?

    I started "defrag - v w" command line 15 hours ago and I think she's still going because I do not have a command line prompt and the hard drive light flashes quickly (and somewhat randomly).  Anyone know how to stop the defrag process command line without altering anything?

    Key does nothing and the Task Manager shows that defragmentation is running.

    The f

    CTRL-c should stop.

  • How to stop AMS 5 fill the memory of the server? (several processes to. / amsmaster - console never seem to close...)

    When the server is started, it starts off very little memory load.
    As people look at flows, the memory usage increases gradually. And increases!  Currently, only 22 MB of free space.

    But with only 10 people watching streams, I still have 100 + open process.

    It seems that these (hidden?) open but never close - as there is no garbage collection.

    I appreciate the value of caches, but how do I limit the memory used by AMS?

    I would like to book a bit for other processes... I'm getting nervous when he approached the SWAP area...

    (it's 5 AMS on Centos 6.3, BTW)

    You said that I still have 100 + process open... I guess you mean son (aka LWP on Linux)

    Generally, if an amscore has no pending connections nay he died off the coast on its own... However number of threads i.e LWP will not die, because they are in fact an active process threads.

    One way to stop amscore peridoically is to set the values of turnover and MaxCore appropriate within the life Application.xml tag... However note that every time a core roll any active connection on it will end... Adjustable-rate period should be larger than the largest duration possible connection/reading to avoid any surprise to any end user.

  • How to examine the Oracle background process (SMON, PMON, DBW0,...) on a WIN OS

    Dear all:
    On Linux/Unix OS, we can check with order Oracle background processes

    ps - ef | grep ora

    , but how to check the Windows operating system? Can someone show me how to do...
    Thank you very much ~

    regarding

    On Windows, the background process running as a thread in the oracle.exe process.

    You can see through the database using the V$ BGPROCESS discover or "SELECT the PROGRAM FROM V$ SESSION WHERE USERNAME IS NULL.

    Not sure about all the tools under Windows that show the nets with the name of background processes (process explorer from sysinternals shows the son, but not the names of background processes).

  • In Task Manager, how can I know which processes are running in the background?

    In Task Manager, how can I know which processes are running in the background?

    Hello.

    What exactly is your problem?

    Details please! Thank you.

    • When you open the Task Manager, go to processes
    • under the seat of tab CPU reading 01, 02, or higher... that's how you know what programs are underway on the bottom.

    Helped?

  • How can I stop the extraction process?

    How can I stop an extraction process it takes hours and I can't wait much longer, the break and cross symbols will not work. I think that I tried to save it in the wrong place.

    See if using the task management system is able to shut it down.

    Task Manager - PC: (CTRL-ALT-DEL) http://support.microsoft.com/kb/323527

    Mac - Activity Monitor: http://osxdaily.com/2010/08/15/mac-task-manager/

    You can also try to stop the machine.

  • How can I stop erasing background Quiz slide results

    Hello

    I use 6 Captivate and have a whole bunch of problems creating a quiz with question. A first - how to stop background erasing away on the Quiz results slide? The background is from a master, slide and slide results has the parameters of the attached screenshot

    QuizResultScreenshot.png

    I tried to move that changing the length on the timeline, but this makes then the continue button unclickable for ages. The background fades as soon as it will be clickable in the preview (see screenshot below)

    Faded.png

    Hello

    Please go this master slide and click on this image and under property inspector, check the option of 'Transition '.

    It shouldn't be 'Fade In' or 'Fade Out', it should be "seamlessly":

    Hope this helps!

    Thank you

    Vikram

  • How to control the parallel 10gr 2 background process?

    Hi Experts,

    In my dev environment, there are 5 databases running and the server load was very high due to the EMP of database. In the EMP database ago 70 session SYS is running once raise us the DB and its execution of some commands insert. In OS level inception ora_p001_EMP ora_p060_EMP parallel process and operating system level processes use more server resources and these processes are listed in output TOPAS.

    Please find the parallel parameter for reference:

    SQL > show parameter parallel_

    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    fast_start_parallel_rollback string LOW
    parallel_adaptive_multi_user Boolean TRUE
    parallel_automatic_tuning boolean FALSE
    whole parallel_execution_message_size 2152
    parallel_instance_group string
    PARALLEL_MAX_SERVERS integer 160
    parallel_min_percent integer 0
    parallel_min_servers integer 0
    parallel_server boolean FALSE
    parallel_server_instances integer 1
    parallel_threads_per_cpu integer 2
    recovery_parallelism integer 0

    OS level parallel processes: [example of output and its polished]

    / opt/oracle > ps - ef | grep EMP
    Oracle 418026 1 0 ora_p037_EMP 05:46:10-22:59
    Oracle 667770 1 0 may 25-0:14 ora_lgwr_EMP
    Oracle 802830 1 0 ora_p029_EMP 05:46:08-24:19
    Oracle 983172 1 0 may 25-0:05 ora_psp0_EMP
    Oracle 1351696 1 56 ora_p013_EMP 05:46:09-21:15
    Oracle 1368228 1 0 may 25-0:00 ora_q001_EMP
    Oracle 1703974 1 52 ora_p053_EMP 07:52:20 - 14:51
    Oracle 1728598 1 0 may 25-0:00 ora_d000_EMP
    Oracle 1773822 1 120 ora_p012_EMP 05:46:09-20:00
    Oracle 1962148 1 82 ora_p016_EMP 05:46:08-19:23
    1974506 Oracle 1 91 06:47:22-24:22 ora_p020_EMP
    Oracle 2002954 1 0 05:46:08 - 36:27 ora_p027_EMP
    Oracle 2048060 1 44 05:46:08, 09:54 ora_p001_EMP
    Oracle 2400428 1 0 may 25-0:00 ora_s000_EMP
    Oracle 2519090 1 0 may 25-0:41 ora_ckpt_EMP
    Oracle 2580734 1 0 05:46:06 - 0:15 ora_j006_EMP

    Could you please help me, how to reduce this parallel process [P001 to P060] and the use of server resources?

    Thank you

    But you have set up a huge amount for parallel servers

    PARALLEL_MAX_SERVERS integer 160

    Aman...

  • How to stop pop ups

    How can I stop the annoying pop ups appear on the screen. David.

    Hello

    Search for malware, if necessary using the safe mode with networking.

    http://www.bleepingcomputer.com/tutorials/how-to-start-Windows-in-safe-mode/#Vista

    Windows Vista

    Using the F8 method:

    1. Restart your computer.
    2. When the computer starts, you will see your computer hardware are listed. When you see this information begins to tap the F8 key repeatedly until you are presented with the Boot Options Advanced Windows Vista.
    3. Select the Safe Mode with networking with the arrow keys.
    4. Then press enter on your keyboard to start mode without failure of Vista.
    5. To start Windows, you'll be a typical logon screen. Connect to your computer and Vista goes into safe mode.
    6. Do whatever tasks you need and when you are done, reboot to return to normal mode.

    Once in Safe Mode with network, download and run RKill.

    RKill does NOT remove the malware; It stops the Malware process that gives you a chance to remove it with your security programs.

    http://www.bleepingcomputer.com/download/rkill/

    Then, download, install, update and scan your system with the free version of Malwarebytes AntiMalware in Mode safe mode with networking:

    http://www.Malwarebytes.org/products/malwarebytes_free

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    And also scan with the free version of SUPERAntiSpyware

    http://www.SUPERAntiSpyware.com/download.html

    SUPERAntiSpyware Free Edition is 100% free and will detect and remove thousands of Spyware, Adware, Malware, Trojans, KeyLoggers, Dialers, Hi-Jackers, and worms. SUPERAntiSpyware features many unique and powerful technologies and removes spyware threats that other applications fail to remove.

    SUPERAntiSpyware Free Edition does not include blocking in real time or scheduled scan.

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    THS is a very good program to scan your system to remove adware, etc.:

    http://www.bleepingcomputer.com/download/adwcleaner/

    AdwCleaner is a program that finds and removes the Adware, toolbars, potentially unwanted programs (PUP) and browser hijackers from your computer.  Using AdwCleaner you can easily more of these types of programs for a better user experience on your computer delete and while browsing the web.

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    And just to be sure, nothing is lurking in the background:

    'TDSSKiller Rootkit Removal Utility download for free'

    http://USA.Kaspersky.com/downloads/TDSSKiller

    See you soon.

  • Showing a standby screen while the background processing

    Hi all

    I implement a wizard have been I let the user fill in some parameters of network connection. When the user clicks 'next' I want to run a background process to see if the entered parameters are correct. According to the result of the background process, the wizard can continue to the next screen or remain on the current screen.

    There must be something like this:

    boolean onNext()
    {
      // Executed when the user presses 'next' (run in the EDT)
    
      // Show a wait popup
      UiApplication.getUiApplication().pushScreen(progressPopup);
    
      // do my network stuff
      boolean success = false;
      UiApplication.getUiApplication().invokeAndWait(new Runnable()
      {
        public void run()
        {
          // try to connect to the network
          // ...
          success = true;
        }
       });
    
      // hide the popup
      UiApplication.getUiApplication().popScreen(progressPopup);  
    
      // return whether the network stuff was successful
      return success;
    }
    

    This does not work because the popup does not appear. How can I achieve that?

    Thanks in advance!

    Modal screen is very good and has some advantages, in that it means that your logic that knows what it is in the State.

    What you want to do depends on the application.  For example, we have a server locator tool, the user launches the search, then we do not secure anything, except that they cannot launch a new search until they cancel the old one.  Alert us when the search is completed or dead or expired.

    With a modal form (and we do too) I personally like this to have a Cancel button, so that the user can stop waiting - which complicates the Interface.  In fact, there is a case for the wireless network to bring an observer of the screen modal, so that he knows that he has to ignore the answer if the screen has been cancelled.

  • MIDlet with a RIMlet background process

    Hello

    I'm developing a MIDlet customer and BB, I would like to add a background to the vote server process.

    I have a few questions:

    I have a RIMlet the best choice for the background process?

    How can I configure the generation to have a RIMlet and a MIDlet access the same recordstore and memory?

    The RIMlet should auto start and not visible in the applications menu, is it possible?

    Is there a good tutorial for background processing than at other points of entry for BB (project in eclipse and development approach configuration)?

    Thank you

    Guy

    1. for blackberry, I go to the RIMlet.

    2. I don't know how to do this. Never tried. but you can check out this:

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=2546&query.ID=242...

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=25587&query.ID=24...

    3. Yes, that's possible, subject is defined in the module system.

    4. you can refer to this:

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&thread.ID=13576

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/How_To_-_Setup_an_alternate_entry_point...

    I hope this helps.

Maybe you are looking for

  • On the Satellite Pro L500 - 1 6 vibrating screen

    I have a Satellite Pro L500 - 1 6, operting system is windows 7.Since I bought the laptop I've known vibration of the screen.The problem is more acute when I'm running java on firefox and then open a program like Outlook and try to use the drop-down

  • REPLACEMENT OF THE USB

    I lost the USB for my wireless keyboard/mouse set, trying to find where I can get a replacement for him without having to get a new keyboard & mouse. Here are the details: Microsoft 2000 wireless keyboard. model: 1477, 3v 50mA. 09/WUG1066/KGR1066/201

  • The computer hangs at "Shutting Down... "only after the installation of the updates for Vista Ultimate x 64 Windows

    Hello.  Recently, I have reinstalled the 64 bit version of Windows Vista Ultimate on my computer.  I allow all automatic updates (worth about 450MO) and let it do its thing.  Afterwards, I had to reboot my computer.  He was going smooth until he hit

  • Installation error code 0 x 80070673

    When I try to install the updates I get this error: Installation Error Code 0 x 80070673 Microsoft .NET Framework 3.5 Service Pack 1 is a full cumulative update that contains many new features gradually based on .NET Framework 2.0, 3.0, 3.5 and inclu

  • Virtual memory is low. How can this be repaired?

    There was a message saying that Microsoft "increases" my virtual memory, but the message "virtual memory is low..." ' or 'offline '. "made its first appearance on and the screen was flickering a bit."