Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 377063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T14:39:36+00:00 2026-05-12T14:39:36+00:00

In my blackberry simulator i m running two application at the background now i

  • 0

In my blackberry simulator i m running two application at the background now i want to retrive which are the application running in the background.I don’t how to do. Is it possible to show which are the application running in the background.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T14:39:36+00:00Added an answer on May 12, 2026 at 2:39 pm

    List and switch visible application

    • To list all visible applications use ApplicationManager.getVisibleApplications()
    • To bring some application foreground use ApplicationManager.requestForeground(processId)

    alt text http://img195.imageshack.us/img195/7003/applist.png link text http://img32.imageshack.us/img32/9273/applistmenu.png

    Code:

    class Scr extends MainScreen {
    
        ApplicationDescriptor[] mAppDes;
    
        public Scr() {
            listApplications();
        }
    
        void listApplications() {
            ApplicationManager appMan = 
                ApplicationManager.getApplicationManager();
            mAppDes = appMan.getVisibleApplications();
            add(new LabelField("Visible Applications:"));
            for (int i = 0; i < mAppDes.length; i++) {
                boolean isFG = appMan.getProcessId(mAppDes[i]) == appMan
                        .getForegroundProcessId();
                String text = (isFG ? "[F]:" : "[B]") + mAppDes[i].getName();
                add(new LabelField(text));
            }
        }
    
        protected void makeMenu(Menu menu, int instance) {
            super.makeMenu(menu, instance);
            menu.add(refreshApps);
            makeAppMenuItems(menu);
        }
    
        MenuItem refreshApps = new MenuItem("Refresh", 0, 0) {
            public void run() {
                deleteAll();
                listApplications();
            }
        };
    
        class AppMenuItem extends MenuItem {
            ApplicationDescriptor mAppDes;
            public AppMenuItem(ApplicationDescriptor appDes) {
                super(appDes.getName(), 100000, 100000);
                mAppDes = appDes;
            }
            public void run() {
                ApplicationManager appMan = ApplicationManager
                        .getApplicationManager();
                int processId = appMan.getProcessId(mAppDes);
                appMan.requestForeground(processId);
            }
        }
    
        void makeAppMenuItems(Menu menu) {
            for (int i = 0, cnt = mAppDes.length; i < cnt; i++)
                menu.add(new AppMenuItem(mAppDes[i]));
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have been working on developing an blackberry application. as per now i want
I am tried deploying .cod,.alx.jar files on blackberry simulator 8100;the application is not getting
The BlackBerry Desktop API has the interface IRimTable which apparently maps an application database
I am trying to create an application on BlackBerry 9930 simulator that authenticate the
Here I am using the Blackberry simulator 8520. I want to receive an sms
I am trying to run an Android application on a BlackBerry PlayBook Simulator using
For my university class we are developing a multi-threaded Blackberry application which allows us
I have been running my blackberry app on the simulator. I have use deviceside=true
I've written a Blackberry appliation with the Blackberry JDE, running on a 9000 simulator.
I am embedding browser in blackberry application. In which I open my compny website

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.