I am developing an app and there is requirement to know which app are launched by user. At any given point of time I would like to know which apps user is launching ( such as FB, Instagram, Candy Crush Saga etc. ) .
I did google quite a bit , however could not find any reference to do it. I did find reference to sys/sysctl.h and then finding running process and mapping process id to map name ( this )
I wanted to check if there is alternative and/or better/more efficient way of doing this.