Programmatically get all processes running on blackberry

Programmatically, how do I:

a) Find all the processess running on my Blackberry?

b) Which of those processes are running in the background?

Is there an api or documentation I can look at, or maybe get a coded example?

Thanks in advance for any help


Take a look at this answer, making sure to note the comment below the actual answer. You need to request all the module handles on the device, and then for each, check to see if they're running.

Also, see this BlackBerry forum response, with the content quoted here, because it's a non-SO site:

  1. Get all module handles (perhaps w/o siblings)
  2. Traverse through the handle list and filter out library types (leaves us CLDC/Midlet)
  3. Get app descriptors (main) and associated PID
  4. If PID exists, implicit conclusion that process is running (may be visible or invisible hidden background process w/o UI).

Another related API would be ApplicationManager.getVisibleApplications(), which allows you to list running apps, that are visible (not background services).

As for which are in the background, you will get the process IDs from above, and then you can check those against the current foreground process ID (only one can be in the foreground ... all the others are in the background). Get the foreground process ID from ApplicationManager.getForegroundProcessId()

This code will help you to find out current running applications

ApplicationManager appMan = ApplicationManager.getApplicationManager();
        ApplicationDescriptor appDes[] = appMan.getVisibleApplications();

        for (int i = 0; i < appDes.length; i++) 
                  result = appDes[i].getModuleName();
          System.Out.Println("Currently Running application " +result ) 

Need Your Help

Configure Binding on WCF Service injected with Autofac

wcf binding configuration integration autofac

I'm serving some WCF services using Autofac, and following the tutorials it's working fine! But now, I need to send a request of > 65Kb, so I must to change the binding on the server to allow this

ipython pandas plot does not show

python matplotlib pandas ipython anaconda

I am using the anaconda distribution of ipython/Qt console. I want to plot things inline so I type the following from the ipython console:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.