What happens when application is starting.

Login to reply to this topic.
Fri, 2008-08-29 12:52
Joined: 2007-02-12
Forum posts: 27

Hi,

What exactly happens when any application is starting?
How the OS get notified on start/exit of an application?
Can we trap such events?

I'm working with S60 3rd Ed FP2.


Regards,
Pankaj.

The best place to find the helping hand is at the end of your arm!!!


Fri, 2008-08-29 13:44
Joined: 2003-12-05
Forum posts: 672
Re: What happens when application is starting.

Well it is the OS that lauches the application. So it does not need any notifications. Maybe you want to know if your app can get notifications from the OS on application launches, eh?

Fri, 2008-08-29 14:03
Joined: 2007-02-12
Forum posts: 27
Re: What happens when application is starting.

Yes,

Can my application get a notification when any application starts/exit so that I can log the event.


Regards,
Pankaj.

The best place to find the helping hand is at the end of your arm!!!

Sat, 2008-08-30 10:16
Joined: 2003-12-05
Forum posts: 672
Re: What happens when application is starting.

AFAIK, no. You just have to periodically check the list of running processes, compare the list to the previous one and therefore get the changes (just launched/stopped applications).

Sat, 2008-08-30 18:32
Joined: 2007-02-12
Forum posts: 27
Re: What happens when application is starting.

yes, that's the way I thought of but it will not a good solution.
Thanks for the suggestions Smiling


Regards,
Pankaj.

The best place to find the helping hand is at the end of your arm!!!

Mon, 2008-09-01 09:30
Joined: 2004-07-09
Forum posts: 110
Re: What happens when application is starting.

Hi Pankaj,

Sorry if i am wrong, from long time i am not worked on Symbian.

If you knew the UID of application which you want to monitor for Start / Exit notification,

you will get the Exit notification using RThread Logon method.

and I think for getting start notification you have to poll it by using RApaLsSession class, which will have a method to get the number of running application.

So when your intial counter and latest counter of running application mismatch, you can run the logic for finding out which new application is running.

Best Regards,
Dipak Baviskar


DipakBaviskar

  • Login to reply to this topic.