How can I get that specific applications are started?

Hello

I want to set the password to start application selected by the user. but I don't know how can I detected if these applications are invited to start (i.e. clicked on open). Yes, is there any listener or something who inform us if some modules of cod comes to the foreground. Please answer quickly...

Thank you

Shashank

Thanks a lot Peter for your answer.

It's done now and I used the timertask

but I have a question that using timertask in each ms 300 will be the effect on the treatment of the device or not... ?

timer = new Timer();
timerTask = new TimerTask() {
    public void run() {
        appDescriptor = ApplicationManager.getApplicationManager()
                        .getVisibleApplications();
        moduleName = appDescriptor[0].getModuleName();
// moduleName will provide the Module name of the application which currently is in the foreground
        }
        };
        timer.scheduleAtFixedRate(timerTask, 0, 300);

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for

  • Application error 29005 - impossible to reinstall A100 using the recovery CD

    Hi, I need help with the toshiba restore tool... I got the blue screen saying the boot not mounted at the beginning and then volume I decide to repair or reinstall the operating system using the recovery CD.However, he ceased to work when he came to

  • need updated drivers Intel, motherboard, Dram and other

    First stop, I'm a big 75 years old grandfather with an observation of something that HP does not provide. But should! My wife and I bought of many HP laptops, desktops, tablets, etc. over the years. Right now, my concern applies to the Touchsmart fro

  • Cannot partition on Windows Home Server

    The problem:We are currently the main C drive partitioned 20 GB and we cannot repartition try with several different partition tools.  The error via a tool, it's "the volume you have selected cannot be extended.  Other tools to give similar messages.

  • Blocking of the spooler

    Almost every time I print to CM1415fnw program which is print oneself up with the queue of print. Two weeks ago, I got a new computer with Windows 8.1 installed. I very frequently, print several documents daily, and this problem started all of a sudd

  • New Z10 updated blackBerry 10.2.1

    I live in Ireland and I'm with the carrier 48. I waited a few days now to update and nothing has changed. I tried the OTA and BB link and neither have worked if someone can tell me if I should wait or change to a carrier as Meteor I know have release