How to get running foreground app name?

How to get running foreground app name?

BY 28 Aug 2014 Native Application Development
I want to change Hello Tizen exmple Application to print running foreground app name… but there is no example for native app (in web app, https://developer.tizen.org/documentation/articles/process-management) How to get running foreground app name? likes gallery, movie-player(default movie player) I need to get running foreground app name in Native application….. please help…
Written by